Skip to content

Commit

Permalink
hotfix: allowedOrigin 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
annahxxl committed Mar 7, 2024
1 parent a76b8ac commit d197d07
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,7 @@ class WebSecurityConfig(
fun corsConfigurationSource(): CorsConfigurationSource {
val configuration = CorsConfiguration()

configuration.allowedOriginPatterns = listOf(
"http://localhost:5173",
"http:kiwing.kr",
"https://kiwing.kr",
)
configuration.allowedOriginPatterns = allowedOrigins.split(",").map { it.trim() }
configuration.allowCredentials = true
configuration.allowedHeaders = listOf("*")
configuration.allowedMethods = listOf("HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
Expand Down

0 comments on commit d197d07

Please sign in to comment.