Skip to content

Commit

Permalink
chore(dev): try do not use "*" for cors
Browse files Browse the repository at this point in the history
  • Loading branch information
bas-kirill committed Aug 27, 2024
1 parent 6924952 commit 4e63dc2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ class SecurityConfiguration {
fun corsConfigurationSource(): CorsConfigurationSource {
logger.info("keeek: 'dev'")
val configuration = CorsConfiguration()
// configuration.allowedOrigins = listOf("http://localhost:3000")
configuration.allowedOrigins = listOf("*")
configuration.allowedOrigins = listOf("http://localhost:3000")
// configuration.allowedOrigins = listOf("*")
configuration.allowedMethods = listOf("GET", "POST", "PUT", "DELETE", "OPTIONS")
configuration.allowedHeaders = listOf("*")
configuration.allowCredentials = true
Expand Down

0 comments on commit 4e63dc2

Please sign in to comment.