Skip to content

Commit

Permalink
docs : cors 설정 변경 #27
Browse files Browse the repository at this point in the history
  • Loading branch information
strangehoon committed Feb 18, 2024
1 parent 318caa9 commit 9229bf7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ public CorsConfigurationSource corsConfigurationSource() {
configuration.addAllowedMethod("*");
configuration.setAllowCredentials(true);
configuration.setAllowedOriginPatterns(Collections.singletonList("*"));

configuration.addAllowedHeader("http://localhost:3000");
configuration.addAllowedHeader("https://sendback.co.kr");
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
source.registerCorsConfiguration("/**", configuration);
return source;
Expand Down

0 comments on commit 9229bf7

Please sign in to comment.