Skip to content

Commit

Permalink
Merge pull request #27 from code-review-platform-flow/feat/cors
Browse files Browse the repository at this point in the history
feat: cors 설정
  • Loading branch information
abwarten authored Aug 26, 2024
2 parents d98926a + 8599c00 commit 40d6597
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class WebConfig implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:5173")
.allowedOrigins("http://localhost:3000")
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true);
Expand Down

0 comments on commit 40d6597

Please sign in to comment.