From 4d442f766fc3e93903eb84b59239d04c6fcdbd4e Mon Sep 17 00:00:00 2001 From: joonghyun Date: Thu, 27 Jun 2024 21:24:54 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20allowedOrigins=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EB=B6=88=ED=95=84=EC=9A=94=ED=95=9C=20url=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ollie/wecare/common/configuration/WebConfiguration.java | 2 +- .../wecare/common/configuration/WebSecurityConfiguration.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ollie/wecare/common/configuration/WebConfiguration.java b/src/main/java/ollie/wecare/common/configuration/WebConfiguration.java index 350a702..d35407a 100644 --- a/src/main/java/ollie/wecare/common/configuration/WebConfiguration.java +++ b/src/main/java/ollie/wecare/common/configuration/WebConfiguration.java @@ -10,7 +10,7 @@ public class WebConfiguration implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") - .allowedOrigins("http://localhost:8080", "https://wecare-ollie.netlify.app", "http://localhost:3000", "https://team-ollie.github.io/WeCare-FE") + .allowedOrigins("http://localhost:8080", "http://localhost:3000", "https://team-ollie.github.io/WeCare-FE") .allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS") .allowedHeaders("*") .allowCredentials(true); diff --git a/src/main/java/ollie/wecare/common/configuration/WebSecurityConfiguration.java b/src/main/java/ollie/wecare/common/configuration/WebSecurityConfiguration.java index ab18f57..f6f066d 100644 --- a/src/main/java/ollie/wecare/common/configuration/WebSecurityConfiguration.java +++ b/src/main/java/ollie/wecare/common/configuration/WebSecurityConfiguration.java @@ -34,7 +34,7 @@ public class WebSecurityConfiguration { CorsConfigurationSource corsConfigurationSource() { CorsConfiguration configuration = new CorsConfiguration(); configuration.setAllowedHeaders(List.of("*")); - configuration.setAllowedOrigins(List.of("http://localhost:8080", "https://wecare-ollie.netlify.app", "http://localhost:3000", "https://team-ollie.github.io/WeCare-FE")); + configuration.setAllowedOrigins(List.of("http://localhost:8080", "http://localhost:3000", "https://team-ollie.github.io/WeCare-FE")); configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")); configuration.setAllowCredentials(true); UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();