Skip to content

Commit 1e08b24

Browse files
committed
fix: CORS 설정 변경
1 parent dfe405a commit 1e08b24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tuk-api/src/main/kotlin/nexters/tuk/config/WebMvcConfig.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ class WebMvcConfig(
1818
registry.addMapping("/**")
1919
.allowedOrigins("http://localhost:3000", "https://tuk.kr", "https://www.tuk.kr")
2020
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")
21-
.allowedHeaders("*")
21+
.allowedHeaders("Content-Type", "Authorization", "X-Requested-With", "Accept")
2222
.allowCredentials(true)
23+
.maxAge(3600)
2324
}
2425
}

0 commit comments

Comments
 (0)