From 8eb6aa0e16308c20191a57488f01fad38330a588 Mon Sep 17 00:00:00 2001 From: eunjungL <62099953+eunjungL@users.noreply.github.com> Date: Wed, 24 Jul 2024 18:48:11 +0900 Subject: [PATCH] =?UTF-8?q?[Feature]=20-=20FE=20develop=20CORS=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC=20(#109)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 프론트엔드 dev 서버 cors 추가 * fix: cors 설정 오류 수정 --- .../main/java/woowacourse/touroot/global/config/WebConfig.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/main/java/woowacourse/touroot/global/config/WebConfig.java b/backend/src/main/java/woowacourse/touroot/global/config/WebConfig.java index 077cd79a..e32b6469 100644 --- a/backend/src/main/java/woowacourse/touroot/global/config/WebConfig.java +++ b/backend/src/main/java/woowacourse/touroot/global/config/WebConfig.java @@ -10,7 +10,6 @@ public class WebConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") - .allowedOrigins("http://localhost:3000") - .allowedOrigins("https://dev.touroot.kr"); + .allowedOrigins("http://localhost:3000", "https://dev.touroot.kr"); } }