Skip to content

Commit

Permalink
fix: allow all request header
Browse files Browse the repository at this point in the history
`#` change cors settings
  • Loading branch information
laigasus committed Apr 28, 2024
1 parent 961ec0b commit d2ee148
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ CorsConfigurationSource corsConfigurationSource() {
HttpMethod.PATCH.name(),
HttpMethod.DELETE.name())
);
configuration.setAllowedHeaders(List.of("Authorization", "Content-Type"));
configuration.setAllowedHeaders(List.of("*"));
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
source.registerCorsConfiguration("/**", configuration);
return source;
Expand Down

0 comments on commit d2ee148

Please sign in to comment.