Skip to content

Commit

Permalink
🐛fix: add credential
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantaphocpython committed Nov 10, 2024
1 parent ff08094 commit aa77d20
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ CorsConfigurationSource corsConfigurationSource() {

configuration.setAllowedMethods(List.of("*"));
configuration.setAllowedHeaders(List.of("*"));
configuration.setAllowCredentials(true);

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

0 comments on commit aa77d20

Please sign in to comment.