Skip to content

Commit

Permalink
Add PATCH method in Backend CORS config
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed May 13, 2024
1 parent 3789404 commit aa6c8a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class WebSecurityConfig {
fun corsConfigurationSource(): CorsConfigurationSource {
val configuration = CorsConfiguration().apply {
allowedOrigins = listOf("*")
allowedMethods = listOf("HEAD", "GET", "POST", "PUT", "DELETE", "OPTIONS")
allowedMethods = listOf("HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
allowedHeaders = listOf("Authorization", "Cache-Control", "Content-Type")
}

Expand Down

0 comments on commit aa6c8a4

Please sign in to comment.