Skip to content

Commit

Permalink
origins 값 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
HwangHoYoon committed Jan 20, 2024
1 parent dd7eb17 commit 5499aad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server_config
6 changes: 3 additions & 3 deletions src/main/java/com/chwipoClova/common/config/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public CorsConfigurationSource corsConfigurationSource() {
config.setAllowedOrigins(origins);
config.setAllowCredentials(true);

//config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
//config.setAllowedHeaders(List.of("*"));
//config.setExposedHeaders(List.of("*"));
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
config.setAllowedHeaders(List.of("*"));
config.setExposedHeaders(List.of("Set-Cookie"));

UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
source.registerCorsConfiguration("/**", config);
Expand Down

0 comments on commit 5499aad

Please sign in to comment.