From 7ad0ad2d4826f42e63e9b53f638c4c7c3c759c93 Mon Sep 17 00:00:00 2001 From: junpakPark <112045553+junpakPark@users.noreply.github.com> Date: Wed, 20 Sep 2023 13:59:08 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20cors=20Credentials=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/mapbefine/mapbefine/common/config/WebConfig.java | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/main/java/com/mapbefine/mapbefine/common/config/WebConfig.java b/backend/src/main/java/com/mapbefine/mapbefine/common/config/WebConfig.java index 7b5fafe5..6cfddd36 100644 --- a/backend/src/main/java/com/mapbefine/mapbefine/common/config/WebConfig.java +++ b/backend/src/main/java/com/mapbefine/mapbefine/common/config/WebConfig.java @@ -19,6 +19,7 @@ public void addCorsMappings(CorsRegistry registry) { .allowedOrigins("http://localhost:3000", "https://mapbefine.kro.kr", "https://mapbefine.com") .allowedHeaders(COOKIE) .allowedMethods("*") + .allowCredentials(true) .exposedHeaders(LOCATION, SET_COOKIE); }