From 5d8d0564e9dffd1d87afd1173395b9d65fd39dc6 Mon Sep 17 00:00:00 2001 From: Jaeyoung Lim Date: Mon, 3 Jun 2024 08:02:33 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20CORS=20=EC=84=A4=EC=A0=95=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/dev/goormthon/ppoori/global/config/WebConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/goormthon/ppoori/global/config/WebConfig.java b/src/main/java/dev/goormthon/ppoori/global/config/WebConfig.java index 0f4a867..6a04dbd 100644 --- a/src/main/java/dev/goormthon/ppoori/global/config/WebConfig.java +++ b/src/main/java/dev/goormthon/ppoori/global/config/WebConfig.java @@ -10,7 +10,7 @@ public class WebConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/api/**") - .allowedOrigins("https://jejucart-front.vercel.app", "http://localhost:3000") + .allowedOriginPatterns("*") .allowedMethods("HEAD", "OPTIONS", "GET", "POST", "PUT", "PATCH", "DELETE") .allowCredentials(true); }