Skip to content

Commit

Permalink
HOTFIX: SWAGGER에서 POST 메서드 전송이 되지 않는 현상 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yechan-kim committed Aug 1, 2024
1 parent 54fe33b commit 6a8d371
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ CorsConfigurationSource corsConfigurationSource() {
configuration.setAllowedMethods(Arrays.asList("HEAD", "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
configuration.setAllowCredentials(true);
configuration.setAllowedHeaders(List.of("*"));
configuration.setExposedHeaders(Arrays.asList("Authorization, Authorization-refresh"));
configuration.setExposedHeaders(Arrays.asList("Authorization", "Authorization-refresh"));

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

0 comments on commit 6a8d371

Please sign in to comment.