From 818bacbd09d71c9cba9e0fa89fdf12345a48534f Mon Sep 17 00:00:00 2001 From: kchaeeun Date: Tue, 20 Aug 2024 00:25:22 +0900 Subject: [PATCH] =?UTF-8?q?=20=F0=9F=9A=91=20[HOTFIX]=20CORS=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=EB=A1=9C=20=EC=9D=B8=ED=95=B4=20=EA=B6=8C=ED=95=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/example/majorLink/global/config/WebConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/majorLink/src/main/java/com/example/majorLink/global/config/WebConfig.java b/majorLink/src/main/java/com/example/majorLink/global/config/WebConfig.java index e9a28a7..7c142f2 100644 --- a/majorLink/src/main/java/com/example/majorLink/global/config/WebConfig.java +++ b/majorLink/src/main/java/com/example/majorLink/global/config/WebConfig.java @@ -12,6 +12,7 @@ public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") .allowedOrigins("http://localhost:3000", "http://localhost:3007","http://localhost:3008") //프론트 테스트 url입니다. .allowedMethods("POST", "GET", "DELETE", "PUT", "PATCH") - .allowedHeaders("*"); + .allowedHeaders("*") + .allowCredentials(true); } }