From b4c63ebdc2fe96c47de6a5bc5f211386fab36c59 Mon Sep 17 00:00:00 2001 From: Zepelown Date: Sat, 21 Dec 2024 11:40:51 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20cors=20=EC=9E=84=EC=8B=9C=EB=A1=9C=20?= =?UTF-8?q?=EB=AA=A8=EB=93=A0=20=EA=B2=BD=EB=A1=9C=20=ED=97=88=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/com/wap/wabi/common/config/WebConfig.kt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/wabi/src/main/kotlin/com/wap/wabi/common/config/WebConfig.kt b/wabi/src/main/kotlin/com/wap/wabi/common/config/WebConfig.kt index a1a5313..e6ed43d 100644 --- a/wabi/src/main/kotlin/com/wap/wabi/common/config/WebConfig.kt +++ b/wabi/src/main/kotlin/com/wap/wabi/common/config/WebConfig.kt @@ -10,12 +10,13 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer class WebConfig(private val requestLoggingInterceptor: RequestLoggingInterceptor) : WebMvcConfigurer { override fun addCorsMappings(registry: CorsRegistry) { registry.addMapping("/**") - .allowedOrigins( - "https://zepelown.site", - "https://master--wabicheck.netlify.app/", - "http://localhost:3000", - "http://localhost:8080" - ) +// .allowedOrigins( +// "https://zepelown.site", +// "https://master--wabicheck.netlify.app/", +// "http://localhost:3000", +// "http://localhost:8080" +// ) + .allowedOrigins("*") .allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE") .allowedHeaders("*") .allowCredentials(true);