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 74c7d00 commit a47a1fb
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 a47a1fb

Please sign in to comment.