From 1d71c387e5f5a70e008424248e75245cf289b32c Mon Sep 17 00:00:00 2001 From: Jeongyeon Lee Date: Tue, 30 Jul 2024 00:45:00 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20CORS=20allowedOrigins=EB=A5=BC=20?= =?UTF-8?q?=EC=99=80=EC=9D=BC=EB=93=9C=EC=B9=B4=EB=93=9C=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20(#255)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/dilly/global/config/CorsConfig.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packy-api/src/main/java/com/dilly/global/config/CorsConfig.java b/packy-api/src/main/java/com/dilly/global/config/CorsConfig.java index 2d402dbd..aa9a87e2 100644 --- a/packy-api/src/main/java/com/dilly/global/config/CorsConfig.java +++ b/packy-api/src/main/java/com/dilly/global/config/CorsConfig.java @@ -12,8 +12,7 @@ public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") .allowedHeaders("*") .allowedMethods("HEAD", "OPTIONS", "GET", "POST", "PUT", "PATCH", "DELETE") - .allowedOrigins("localhost:3000", "https://packyforyou.com", - "https://dev.packyforyou.com") + .allowedOrigins("*") .maxAge(3600); } }