Skip to content

Commit

Permalink
Merge pull request #21 from Guzzing/auth
Browse files Browse the repository at this point in the history
hotfix : Cors 에러 해결
  • Loading branch information
byeolhaha authored Nov 4, 2023
2 parents 7fb8cce + ef570c2 commit 893814a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();

configuration.setAllowCredentials(true);
configuration.setAllowedOrigins(Arrays.asList("*"));
configuration.setAllowedOrigins(Arrays.asList("http://localhost:5173"));
configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
configuration.setAllowedHeaders(List.of("*"));
configuration.setExposedHeaders(List.of("*"));
Expand Down

0 comments on commit 893814a

Please sign in to comment.