Skip to content

Commit 8ac7ef3

Browse files
committed
hotfix: fix cors error after migration
1 parent 8347c77 commit 8ac7ef3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/umaxcode/config/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public CorsConfigurationSource corsConfigurationSource() {
4848
cors.addAllowedHeader("*");
4949
cors.addAllowedMethod("*");
5050
cors.setAllowCredentials(true);
51-
cors.setAllowedOrigins(List.of("http://localhost:3000", "https://dev.d2x151q2vf1tfl.amplifyapp.com", "https://main.d1m5j798vicdd1.amplifyapp.com"));
51+
cors.setAllowedOrigins(List.of( "https://main.d2i58a1z0px5uw.amplifyapp.com"));
5252
source.registerCorsConfiguration("/**", cors);
5353

5454
return source;

0 commit comments

Comments
 (0)