diff --git a/src/main/java/com/gongjakso/server/global/config/SecurityConfig.java b/src/main/java/com/gongjakso/server/global/config/SecurityConfig.java index 1e83b09c..24dd750f 100644 --- a/src/main/java/com/gongjakso/server/global/config/SecurityConfig.java +++ b/src/main/java/com/gongjakso/server/global/config/SecurityConfig.java @@ -88,7 +88,7 @@ CorsConfigurationSource corsConfigurationSource() { // 인증정보 주고받도록 허용 config.setAllowCredentials(true); // 허용할 주소 - config.setAllowedOrigins(List.of("*")); + config.setAllowedOriginPatterns(List.of("*")); // 허용할 HTTP Method config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")); // 허용할 헤더 정보