Skip to content

Commit

Permalink
[fix #182] Front 도메인 변경에 따른 CORS 오류 해결 (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
dudxo authored Jan 1, 2025
1 parent bd67d41 commit fc2dd72
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,11 @@ public WebSecurityCustomizer webSecurityCustomizer() {
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();

configuration.setAllowedOrigins(Arrays.asList("http://localhost:3000", "https://gongmuin.netlify.app",
"https://gongmuin.site", "https://gongmuin.shop", "http://localhost:8080", "/ws/**"));
configuration.setAllowedOrigins(
Arrays.asList(
"http://localhost:3000", "https://dnd-11th-3-frontend-client.vercel.app",
"https://gongmuin.site", "https://gongmuin.shop", "http://localhost:8080", "/ws/**"
));
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"));
configuration.setAllowedHeaders(Arrays.asList("*"));
configuration.setExposedHeaders(Arrays.asList("Set-Cookie", "Authorization"));
Expand Down

0 comments on commit fc2dd72

Please sign in to comment.