From 9b1adfa45cb17280579aaf29f3bb106060ef99cb Mon Sep 17 00:00:00 2001 From: Heekyeong Park Date: Fri, 27 Sep 2024 04:51:05 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20=EB=B0=B0=ED=8F=AC=20=EB=8F=84?= =?UTF-8?q?=EB=A9=94=EC=9D=B8=20CORS=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/techeer/checkIt/global/config/WebConfiguration.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/techeer/checkIt/global/config/WebConfiguration.java b/src/main/java/com/techeer/checkIt/global/config/WebConfiguration.java index 6de974f..cad5256 100644 --- a/src/main/java/com/techeer/checkIt/global/config/WebConfiguration.java +++ b/src/main/java/com/techeer/checkIt/global/config/WebConfiguration.java @@ -9,7 +9,11 @@ public class WebConfiguration implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") - .allowedOrigins("http://localhost:5173", "https://check-it.shop", "https://d1gntbefjuz72k.cloudfront.net", "https://cloudfront.check-it.shop", "http://cloudfront.check-it.shop") + .allowedOrigins( + "http://localhost:5173", // 프론트 로컬 + "https://api.check-it.shop", // 서버 배포 주소 + "https://www.check-it.shop" // 프론트 배포 주소 + ) .allowedMethods("GET", "POST", "PUT", "DELETE") .allowCredentials(true); }