From b62e6cc216e503da495dd4e224c5b6a99585acb5 Mon Sep 17 00:00:00 2001 From: daeun084 <030804jk@naver.com> Date: Mon, 2 Sep 2024 00:55:46 +0900 Subject: [PATCH] =?UTF-8?q?!hotfix:=20allowedOrigins=20port=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/FITPET/dev/common/config/WebConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/FITPET/dev/common/config/WebConfig.java b/src/main/java/FITPET/dev/common/config/WebConfig.java index 4b6175a..c2d9f33 100644 --- a/src/main/java/FITPET/dev/common/config/WebConfig.java +++ b/src/main/java/FITPET/dev/common/config/WebConfig.java @@ -10,7 +10,7 @@ public class WebConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") // 모든 경로에 대해 CORS를 허용 - .allowedOrigins("http://localhost:8080") + .allowedOrigins("http://localhost:3000") .allowedMethods("GET", "POST", "PATCH", "DELETE") .allowedHeaders("*") // 허용할 헤더 .allowCredentials(true); // 자격 증명 허용