diff --git a/server_config b/server_config index 2c715f4..31cebc5 160000 --- a/server_config +++ b/server_config @@ -1 +1 @@ -Subproject commit 2c715f4c1a9c392a139755ade00fa105fd58ef18 +Subproject commit 31cebc50d4f0d06b40e88de27cc2128a38c9131b diff --git a/src/main/java/com/chwipoClova/common/config/CorsConfig.java b/src/main/java/com/chwipoClova/common/config/CorsConfig.java index 38bcad5..bf1421f 100644 --- a/src/main/java/com/chwipoClova/common/config/CorsConfig.java +++ b/src/main/java/com/chwipoClova/common/config/CorsConfig.java @@ -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);