From e2aaacde4f11e51ec0d54d56cc2a479da4944b1e Mon Sep 17 00:00:00 2001 From: hong Date: Thu, 2 Nov 2023 02:31:43 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20cors=20=EC=84=A4=EC=A0=95=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/WithYou/global/config/WebSecurityConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/WithYou/global/config/WebSecurityConfig.java b/src/main/java/WithYou/global/config/WebSecurityConfig.java index 38699c2..424aced 100644 --- a/src/main/java/WithYou/global/config/WebSecurityConfig.java +++ b/src/main/java/WithYou/global/config/WebSecurityConfig.java @@ -11,7 +11,8 @@ public class WebSecurityConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") - .allowedOrigins("http://10.114.10.20:3000", "http://192.168.0.26:3000", "http://172.20.10.2:3000/") // 허용할 도메인(Origin)을 명시적으로 지정 + .allowedOrigins("http://10.114.10.20:3000", "http://192.168.0.26:3000", + "http://172.20.10.2:3000") // 허용할 도메인(Origin)을 명시적으로 지정 .allowedHeaders("*") .exposedHeaders("accessToken", "refreshToken", "validation") .allowedMethods(