Skip to content

Commit

Permalink
cors enable
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkyoungdeok committed Feb 27, 2024
1 parent be1336a commit a75ce1b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class CorsFilter {
corsConfig.addAllowedMethod(HttpMethod.POST)
corsConfig.addAllowedMethod(HttpMethod.OPTIONS)
corsConfig.addAllowedHeader("Content-Type")
corsConfig.addAllowedHeader("Authorization")

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

0 comments on commit a75ce1b

Please sign in to comment.