Skip to content

Commit

Permalink
hotfix : cors해결
Browse files Browse the repository at this point in the history
  • Loading branch information
bo-ram-bo-ram authored Jul 14, 2024
1 parent 350317c commit 4f39903
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public CorsFilter corsFilter() {
config.addAllowedOrigin("http://localhost:8081");
config.addAllowedOrigin("http://localhost:5173");
config.addAllowedOrigin("https://pick-ple.com");
config.addAllowedOrigin("http://pick-ple.com");
config.addAllowedHeader("*");
config.setAllowedMethods(Arrays.asList("HEAD", "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
source.registerCorsConfiguration("/**", config);
Expand All @@ -43,4 +44,4 @@ public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers)
resolvers.add(guestIdResolver);
resolvers.add(hostIdResolver);
}
}
}

0 comments on commit 4f39903

Please sign in to comment.