From 897a8d283fc923e3b3a1a1118631dc286492995c Mon Sep 17 00:00:00 2001 From: yunjunghun0116 Date: Fri, 2 Aug 2024 12:54:01 +0900 Subject: [PATCH] =?UTF-8?q?add:=20cors=20=ED=97=88=EC=9A=A9=20=EC=A3=BC?= =?UTF-8?q?=EC=86=8C=20=EC=B6=94=EA=B0=80(localhost:3000)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/gift/config/WebConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/gift/config/WebConfig.java b/src/main/java/gift/config/WebConfig.java index 8ce315fa7..98d1ab189 100644 --- a/src/main/java/gift/config/WebConfig.java +++ b/src/main/java/gift/config/WebConfig.java @@ -27,7 +27,7 @@ public void addInterceptors(InterceptorRegistry registry) { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") - .allowedOrigins("http://localhost:3000", "http://localhost:8080") + .allowedOrigins("http://localhost:3000", "localhost:3000") .allowedMethods("GET", "POST", "PUT", "DELETE") .allowedHeaders("*") .maxAge(1800);