Skip to content

Commit

Permalink
Merge pull request #31 from FC-InnerCircle/main
Browse files Browse the repository at this point in the history
stage 반영
  • Loading branch information
Donghyeon0908 authored Sep 12, 2024
2 parents a0015c6 + cf771db commit a0494f2
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class SecurityConfig(
fun filterChain(http: HttpSecurity): SecurityFilterChain {
return http
.csrf { csrf -> csrf.disable() }
.cors { cors -> cors.disable() }
.cors { cors -> cors.configurationSource(corsConfig()) }
.httpBasic { httpBasic -> httpBasic.disable() }
.sessionManagement { sessionManagement ->
sessionManagement.sessionCreationPolicy(SessionCreationPolicy.STATELESS)
Expand Down Expand Up @@ -85,7 +85,10 @@ class SecurityConfig(
"Set-Cookie",
)
exposedHeaders = listOf("Authorization", "Set-Cookie")
allowedOriginPatterns = listOf("http://localhost:3000")
allowedOriginPatterns = listOf(
"http://localhost:3000",
"https://icd01-team01-o2o1-fe.vercel.app",
)
}
return UrlBasedCorsConfigurationSource().apply {
registerCorsConfiguration("/**", config)
Expand Down

0 comments on commit a0494f2

Please sign in to comment.