From 1abc0c775e81bd8d399850f72568c108666b217a Mon Sep 17 00:00:00 2001 From: gilgeunwoo Date: Tue, 26 Dec 2023 13:48:42 +0900 Subject: [PATCH] cors --- .../com/kodomo/juganbbojjak/global/web/WebSecurityConfig.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/JuGanBbojjak-infrastructure/src/main/kotlin/com/kodomo/juganbbojjak/global/web/WebSecurityConfig.kt b/JuGanBbojjak-infrastructure/src/main/kotlin/com/kodomo/juganbbojjak/global/web/WebSecurityConfig.kt index 1d07d60..02f881f 100644 --- a/JuGanBbojjak-infrastructure/src/main/kotlin/com/kodomo/juganbbojjak/global/web/WebSecurityConfig.kt +++ b/JuGanBbojjak-infrastructure/src/main/kotlin/com/kodomo/juganbbojjak/global/web/WebSecurityConfig.kt @@ -13,5 +13,7 @@ class WebSecurityConfig : WebMvcConfigurer { .allowedOrigins("*") .allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "HEAD") .allowedHeaders("*") + .allowCredentials(true) + .maxAge(3600) } }