Skip to content

Commit

Permalink
fix: cors 도메인 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ri-naa authored Aug 21, 2024
1 parent 1ba2397 commit 5f86fc3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public CorsConfigurationSource corsConfigurationSource() {
corsConfig.addAllowedOrigin("http://localhost:3000");
corsConfig.addAllowedOrigin("http://localhost:8080");
corsConfig.addAllowedOrigin("https://on-3t2xzl2wq-1425s-projects.vercel.app");
corsConfig.addAllowedOrigin("https://on-weld.vercel.app");
corsConfig.addAllowedMethod("*");
corsConfig.addAllowedHeader("*");
corsConfig.setAllowCredentials(true);
Expand Down Expand Up @@ -107,4 +108,4 @@ public PasswordEncoder passwordEncoder() {
public AuthenticationManager authenticationManager(AuthenticationConfiguration authenticationConfiguration) throws Exception {
return authenticationConfiguration.getAuthenticationManager();
}
}
}

0 comments on commit 5f86fc3

Please sign in to comment.