Skip to content

Commit

Permalink
fix : (#29) cors
Browse files Browse the repository at this point in the history
  • Loading branch information
coehgns committed Feb 12, 2025
1 parent 3a19578 commit c05206c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class CorsConfig {
@Bean
fun corsConfigurationSource(): CorsConfigurationSource {
val configuration = CorsConfiguration()
configuration.allowedOrigins = listOf("http://localhost:5173")
configuration.allowedOrigins = listOf("*")
configuration.allowedMethods = listOf("GET", "POST", "PUT", "DELETE", "OPTIONS")
configuration.allowedHeaders = listOf("*")
configuration.allowCredentials = true
configuration.allowCredentials = false

val source = UrlBasedCorsConfigurationSource()
source.registerCorsConfiguration("/**", configuration)
Expand Down

0 comments on commit c05206c

Please sign in to comment.