From 39ea0c6dd8d60da68ad335c229ba5a5b5b39e8f7 Mon Sep 17 00:00:00 2001 From: hellomatia Date: Mon, 20 May 2024 23:05:50 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A1=9C=EC=BB=AC=EA=B3=BC=20=ED=94=84?= =?UTF-8?q?=EB=9F=B0=ED=8A=B8=20URL=EC=97=90=20=EB=8C=80=ED=95=B4=20CORS?= =?UTF-8?q?=20=ED=97=88=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/mlog/config/WebConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/mlog/config/WebConfig.java b/src/main/java/com/mlog/config/WebConfig.java index 731a295..dc5e3f8 100644 --- a/src/main/java/com/mlog/config/WebConfig.java +++ b/src/main/java/com/mlog/config/WebConfig.java @@ -10,7 +10,7 @@ public class WebConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") // 모든 경로에 대해 - .allowedOrigins("*") // 모든 출처 허용 + .allowedOrigins("http://localhost:5173", "http://m-log-view.s3-website-ap-southeast-2.amazonaws.com") .allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS") // 모든 HTTP 메소드 허용 .allowedHeaders("*") // 모든 헤더 허용 .allowCredentials(true); // 쿠키를 포함한 요청 허용