From c36f69505e70b63053fb31e5409c4e03973ccebe Mon Sep 17 00:00:00 2001 From: hellozo0 Date: Sat, 9 Nov 2024 21:21:47 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=ED=8A=B9=EC=A0=95=20cors=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=EB=A5=BC=20=EC=9E=A1=EA=B8=B0=20=EC=9C=84=ED=95=9C=20?= =?UTF-8?q?=EC=A1=B0=EC=B9=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/moddy/server/config/WebConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/moddy/server/config/WebConfig.java b/src/main/java/com/moddy/server/config/WebConfig.java index 803b0f01..f89d219c 100644 --- a/src/main/java/com/moddy/server/config/WebConfig.java +++ b/src/main/java/com/moddy/server/config/WebConfig.java @@ -20,7 +20,7 @@ public class WebConfig implements WebMvcConfigurer { @Override public void addCorsMappings(final CorsRegistry registry) { registry.addMapping("/**") - .allowedOriginPatterns("*") + .allowedOriginPatterns("http://localhost:5173", "http://localhost:8080", "https://www.moddy.kr", "https://api.moddy.kr", "https://dev.moddy.kr") .allowedMethods(HttpMethod.GET.name(), HttpMethod.POST.name(), HttpMethod.PUT.name(), HttpMethod.DELETE.name(), HttpMethod.OPTIONS.name()) .allowedHeaders("Authorization", "Content-Type") .allowCredentials(true)