Skip to content

Commit

Permalink
hotfix: fix cors error after migration
Browse files Browse the repository at this point in the history
  • Loading branch information
UmaxCode committed Jan 30, 2025
1 parent 8347c77 commit 8ac7ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/umaxcode/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public CorsConfigurationSource corsConfigurationSource() {
cors.addAllowedHeader("*");
cors.addAllowedMethod("*");
cors.setAllowCredentials(true);
cors.setAllowedOrigins(List.of("http://localhost:3000", "https://dev.d2x151q2vf1tfl.amplifyapp.com", "https://main.d1m5j798vicdd1.amplifyapp.com"));
cors.setAllowedOrigins(List.of( "https://main.d2i58a1z0px5uw.amplifyapp.com"));
source.registerCorsConfiguration("/**", cors);

return source;
Expand Down

0 comments on commit 8ac7ef3

Please sign in to comment.