Skip to content

Commit

Permalink
refactor: exposeHeaders 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiwon-cho committed Mar 2, 2024
1 parent f2ea2b8 commit d5e75ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/mara/server/config/cors/CorsConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class CorsConfig : WebMvcConfigurer {
.allowedOriginPatterns("*") // 모든 도메인에 대해 액세스 허용
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS") // 허용할 HTTP 메서드
.allowedHeaders("*") // 모든 헤더 허용
.exposedHeaders("*")
.allowCredentials(true) // 자격 증명 허용
.maxAge(3600) // CORS preflight 요청 결과 캐싱 시간 (초 단위)
}
Expand Down

0 comments on commit d5e75ce

Please sign in to comment.