diff --git a/src/main/java/com/server/bbo_gak/global/config/WebConfig.java b/src/main/java/com/server/bbo_gak/global/config/WebConfig.java index 57e249b..dabb4c9 100644 --- a/src/main/java/com/server/bbo_gak/global/config/WebConfig.java +++ b/src/main/java/com/server/bbo_gak/global/config/WebConfig.java @@ -25,7 +25,7 @@ public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") .allowedOrigins("http://114.70.23.79:8080", "http://localhost:8080", "http://52.65.6.74:8080", - "http://localhost:3000", "https://www.bbogak.com/", "https://dev.bbogak.com/") + "http://localhost:3000", "https://www.bbogak.com", "https://dev.bbogak.com") .allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS") .allowedHeaders("*") .allowCredentials(true); diff --git a/src/main/java/com/server/bbo_gak/global/config/security/SecurityConfig.java b/src/main/java/com/server/bbo_gak/global/config/security/SecurityConfig.java index ef04ebf..6de60df 100644 --- a/src/main/java/com/server/bbo_gak/global/config/security/SecurityConfig.java +++ b/src/main/java/com/server/bbo_gak/global/config/security/SecurityConfig.java @@ -65,8 +65,8 @@ public CorsConfigurationSource corsConfigurationSource() { CorsConfiguration configuration = new CorsConfiguration(); configuration.setAllowedOrigins( List.of("http://114.70.23.79:8080", "http://localhost:8080", "http://52.65.6.74:8080", - "http://localhost:3000", "http://118.67.129.12", "https://bbogak.com", "https://www.bbogak.com/", - "https://dev.bbogak.com/")); + "http://localhost:3000", "http://118.67.129.12", "https://bbogak.com", "https://www.bbogak.com", + "https://dev.bbogak.com")); configuration.addAllowedMethod("*"); configuration.setAllowedHeaders(List.of("*")); // 허용할 헤더 configuration.setAllowCredentials(true);