Skip to content

Commit

Permalink
fix: cors 임시로 모든 경로 허용
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepelown committed Dec 21, 2024
1 parent 2eff5b1 commit b4c63eb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions wabi/src/main/kotlin/com/wap/wabi/common/config/WebConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b4c63eb

Please sign in to comment.