From ae05429fdf255fdf6647d072710bd1bb3e971769 Mon Sep 17 00:00:00 2001 From: sominyun Date: Sat, 7 Sep 2024 21:16:01 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Dockerfile=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/paws/devocean/config/WebConfig.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/paws/devocean/config/WebConfig.java b/src/main/java/com/paws/devocean/config/WebConfig.java index b96c583..c69a510 100644 --- a/src/main/java/com/paws/devocean/config/WebConfig.java +++ b/src/main/java/com/paws/devocean/config/WebConfig.java @@ -9,8 +9,8 @@ public class WebConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") - .allowedOrigins("*") // 허용할 출처 : 특정 도메인만 받을 수 있음 - .allowedMethods("GET", "POST") // 허용할 HTTP method - .allowCredentials(true); // 쿠키 인증 요청 허용 + .allowedOriginPatterns("*") + .allowedMethods("GET") + .allowCredentials(true); } }