From a0685394ab3ac7f30dba6fe100f7ca478c206a7a Mon Sep 17 00:00:00 2001 From: dar-jeeling Date: Fri, 11 Oct 2024 01:50:53 +0900 Subject: [PATCH] =?UTF-8?q?env:=20FE=20=EB=B0=B0=ED=8F=AC=20=EB=8F=84?= =?UTF-8?q?=EB=A9=94=EC=9D=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/odiga/fiesta/common/config/CorsMvcConfig.java | 3 ++- .../java/com/odiga/fiesta/common/config/SecurityConfig.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/odiga/fiesta/common/config/CorsMvcConfig.java b/src/main/java/com/odiga/fiesta/common/config/CorsMvcConfig.java index c1686f39..2da1241a 100644 --- a/src/main/java/com/odiga/fiesta/common/config/CorsMvcConfig.java +++ b/src/main/java/com/odiga/fiesta/common/config/CorsMvcConfig.java @@ -12,7 +12,8 @@ public class CorsMvcConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry corsRegistry) { corsRegistry.addMapping("/api/v1/**") - .allowedOrigins("http://localhost:3000", "https://odiga.shop", "https://fiesta-psi.vercel.app") + .allowedOrigins("http://localhost:3000", "https://odiga.shop", + "https://fiesta-psi.vercel.app", "https://www.odiga.kr") .allowedMethods( GET.name(), HEAD.name(), diff --git a/src/main/java/com/odiga/fiesta/common/config/SecurityConfig.java b/src/main/java/com/odiga/fiesta/common/config/SecurityConfig.java index e225a9a5..a43b1b5d 100644 --- a/src/main/java/com/odiga/fiesta/common/config/SecurityConfig.java +++ b/src/main/java/com/odiga/fiesta/common/config/SecurityConfig.java @@ -65,7 +65,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { configuration.setAllowedOrigins(Arrays.asList( "http://localhost:3000", "https://odiga.shop", - "https://fiesta-psi.vercel.app" + "https://fiesta-psi.vercel.app", + "https://www.odiga.kr" )); configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")); configuration.setAllowedHeaders(Arrays.asList("Authorization", "Cache-Control", "Content-Type"));