Skip to content

Commit

Permalink
[Fix] cors 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
yj-leez committed Dec 21, 2023
1 parent 9fc4471 commit 23af355
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
@Bean
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.addAllowedOrigin("http://localhost:3000");
configuration.addAllowedOrigin("https://react-vote-18th.vercel.app/");
configuration.addAllowedOrigin("https://react-vote-18th.vercel.app");
configuration.addAllowedOrigin("http://52.79.115.164:8080");
configuration.addAllowedOriginPattern("*");
configuration.addAllowedMethod("*");
configuration.addAllowedHeader("*");
configuration.setAllowCredentials(true);
Expand Down

0 comments on commit 23af355

Please sign in to comment.