Skip to content

Commit

Permalink
fix: cors에러
Browse files Browse the repository at this point in the history
  • Loading branch information
qogustj committed Oct 10, 2023
1 parent a47a1fb commit cd3cdd5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
CorsConfigurationSource source = request -> {
// Cors 허용 패턴1
CorsConfiguration config = new CorsConfiguration();
config.setAllowedOrigins(List.of("http://localhost:3000", "https://diamond-hackathon-kutisms.vercel.app/"));
config.setAllowedOrigins(List.of("http://localhost:3000", "https://diamond-hackathon-kutisms.vercel.app"));
config.setAllowedHeaders(List.of("*"));
config.setAllowedMethods(List.of("*"));
config.setAllowCredentials(true);
Expand Down

0 comments on commit cd3cdd5

Please sign in to comment.