Skip to content

Commit

Permalink
Merge pull request #42 from Parkjyun/feat/41
Browse files Browse the repository at this point in the history
[feat] cors 허용 origin 추가
  • Loading branch information
Parkjyun authored Apr 9, 2024
2 parents 77d67c0 + 810c6ab commit 7a516e2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration config = new CorsConfiguration();
config.setAllowCredentials(true);
config.addAllowedOrigin("http://localhost:3000");
config.addAllowedOrigin("https://newsnacks-admin.netlify.app");
config.addAllowedHeader("*");
config.addAllowedMethod("*");
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
Expand Down

0 comments on commit 7a516e2

Please sign in to comment.