Skip to content

Commit

Permalink
HOTFIX: CORS 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
koreaioi authored Jan 7, 2025
1 parent 52444c7 commit fdb9f7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/gachtaxi/global/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public AuthenticationManager authenticationManager(AuthenticationConfiguration c
@Bean
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOriginPatterns(Arrays.asList("http://localhost:3000"));
// configuration.setAllowedOriginPatterns(Arrays.asList("http://localhost:3000"));
corsConfiguration.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 fdb9f7c

Please sign in to comment.