Skip to content

Commit

Permalink
fix :: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dkflfkd53 committed Aug 13, 2024
1 parent fc74543 commit 2d499d8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ public CorsConfigurationSource corsConfigurationSource() {
configuration.setAllowedOrigins(List.of(corsProperties.allowHosts().split(",")));
configuration.setAllowedMethods(List.of("OPTIONS", "GET", "POST", "PUT", "PATCH", "DELETE"));
configuration.setAllowCredentials(false);
configuration.setAllowedHeaders(List.of(corsProperties.allowHeaders().split(",")));
configuration.setExposedHeaders(List.of(corsProperties.exposedHeaders().split(",")));
configuration.addAllowedHeader("*"); // 모든 헤더 허용

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

0 comments on commit 2d499d8

Please sign in to comment.