From 8599c008ff3ada1cf6c565444d8cc4b7199b33b4 Mon Sep 17 00:00:00 2001 From: gypark Date: Mon, 26 Aug 2024 09:38:50 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20cors=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/flow/payment/common/config/WebConfig.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/flow/payment/common/config/WebConfig.java b/src/main/java/com/flow/payment/common/config/WebConfig.java index 80d80c1..764b433 100644 --- a/src/main/java/com/flow/payment/common/config/WebConfig.java +++ b/src/main/java/com/flow/payment/common/config/WebConfig.java @@ -11,6 +11,7 @@ public class WebConfig implements WebMvcConfigurer { public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") .allowedOrigins("http://localhost:5173") + .allowedOrigins("http://localhost:3000") .allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS") .allowedHeaders("*") .allowCredentials(true);