Skip to content

Commit

Permalink
Update SecurityConfig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
kdjun99 authored Oct 18, 2024
1 parent 739e83e commit acfb83a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();

configuration.setAllowedOriginPatterns(Arrays.asList("http://localhost:3000", "https://main.d211p9c5e1szy2.amplifyapp.com/", "https://www.ouruliga.com/"));
configuration.setAllowedOriginPatterns(Arrays.asList("http://localhost:3000", "https://main.d211p9c5e1szy2.amplifyapp.com/", "https://ouruliga.com/"));
configuration.setAllowedMethods(Arrays.asList("HEAD", "POST", "GET", "DELETE", "PUT", "OPTIONS", "PATCH"));
configuration.setAllowedHeaders(List.of("*"));
configuration.setAllowCredentials(true);
Expand Down

0 comments on commit acfb83a

Please sign in to comment.