From df7dbe9e948b28f8fffc4cc28dd55646086863f4 Mon Sep 17 00:00:00 2001 From: Willy Date: Thu, 18 Jul 2024 23:02:19 +0900 Subject: [PATCH] =?UTF-8?q?[=F0=9F=94=A5!hotfix/#63]=20CORS=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/terning/terningserver/config/WebMvcConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/terning/terningserver/config/WebMvcConfig.java b/src/main/java/org/terning/terningserver/config/WebMvcConfig.java index c3029c1..a1a2df2 100644 --- a/src/main/java/org/terning/terningserver/config/WebMvcConfig.java +++ b/src/main/java/org/terning/terningserver/config/WebMvcConfig.java @@ -11,7 +11,7 @@ public class WebMvcConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") - .allowedOrigins("http://localhost:8080", "http://localhost:3000", "http://terning-official.p-e.kr","https://terning-official.p-e.kr", "http://localhost:5173") // 허용할 출처 : 특정 도메인만 받을 수 있음 + .allowedOrigins("http://localhost:8080", "http://localhost:3000", "https://www.terning-official.p-e.kr/") // 허용할 출처 : 특정 도메인만 받을 수 있음 .allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH") // 허용할 HTTP method .allowCredentials(true); // 쿠키 인증 요청 허용 }