Skip to content

Commit

Permalink
HOTFIX: CORS 설정 2
Browse files Browse the repository at this point in the history
  • Loading branch information
koreaioi authored Jan 7, 2025
1 parent fdb9f7c commit 8a60cb6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public AuthenticationManager authenticationManager(AuthenticationConfiguration c
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
// configuration.setAllowedOriginPatterns(Arrays.asList("http://localhost:3000"));
corsConfiguration.setAllowedOriginPatterns(List.of("*"));
configuration.setAllowedOriginPatterns(List.of("*"));
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PATCH", "DELETE", "OPTIONS"));
configuration.setAllowedHeaders(Arrays.asList("*"));
configuration.setExposedHeaders(Arrays.asList("Authorization", "Set-Cookie"));
Expand Down

0 comments on commit 8a60cb6

Please sign in to comment.