Skip to content

Commit

Permalink
chore : CORS 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
GyuHo123 committed Jun 16, 2024
1 parent b08d904 commit 6b91522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/com/example/lsa/common/auth/SecurityConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ class SecurityConfig(
.cors { cors ->
cors.configurationSource {
val configuration = CorsConfiguration().apply {
allowedOriginPatterns = listOf("*")
allowedOriginPatterns = listOf("https://*.com", "https://*.kr", "https://*.dev")
allowedMethods = listOf("GET", "POST", "PUT", "DELETE", "OPTIONS")
allowedHeaders = listOf("*")
allowCredentials = false
allowCredentials = true
}
configuration
}
Expand Down

0 comments on commit 6b91522

Please sign in to comment.