From c06f0d02e6b326e4fbb2df03bf3bf2a4bc586d6e Mon Sep 17 00:00:00 2001 From: "Lee, yeeun" Date: Wed, 30 Oct 2024 20:26:11 +0900 Subject: [PATCH] =?UTF-8?q?:white=5Fcheck=5Fmark:Fix:=20cors=20=ED=97=88?= =?UTF-8?q?=EC=9A=A9=20=EB=8F=84=EB=A9=94=EC=9D=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/example/moyeothon/Config/WebConfig.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/example/moyeothon/Config/WebConfig.java b/src/main/java/com/example/moyeothon/Config/WebConfig.java index f3b845d..cb9e1d4 100644 --- a/src/main/java/com/example/moyeothon/Config/WebConfig.java +++ b/src/main/java/com/example/moyeothon/Config/WebConfig.java @@ -9,8 +9,7 @@ public class WebConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") - .allowedOrigins("http://localhost:3000", - "http://localhost:8080", + .allowedOrigins("http://localhost:8080", "http://127.0.0.1:8080", "http://127.0.0.1:3000", "http://localhost:5173",