From e4f2781a04de19e0dfcd60244da8aad81dc0e8bc Mon Sep 17 00:00:00 2001 From: donghyuun Date: Sat, 16 Nov 2024 12:32:07 +0900 Subject: [PATCH] test: cors error resolve test 3 --- src/main/java/com/helpmeCookies/global/config/WebConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/helpmeCookies/global/config/WebConfig.java b/src/main/java/com/helpmeCookies/global/config/WebConfig.java index fd8b3eb..d3d565c 100644 --- a/src/main/java/com/helpmeCookies/global/config/WebConfig.java +++ b/src/main/java/com/helpmeCookies/global/config/WebConfig.java @@ -18,7 +18,7 @@ public class WebConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") - .allowedOriginPatterns("http://1.618.s3-website.ap-northeast-2.amazonaws.com/") // 허용할 도메인 (모든 도메인 허용: "*") + .allowedOriginPatterns("http://1.618.s3-website.ap-northeast-2.amazonaws.com") // 허용할 도메인 (모든 도메인 허용: "*") .allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS") // 허용할 HTTP 메서드 .allowedHeaders("*") // 허용할 헤더 .allowCredentials(true); // 인증 정보 허용 여부