Skip to content

Commit

Permalink
[refactor] : CorsConfig url 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
chahyunsoo committed May 29, 2024
1 parent 35e1e28 commit 6a3a6a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/backend/univfit/global/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers)
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000", "https://univ-fit.vercel.app", "https://univ-fit.com", "https://www.univ-fit.com")
.allowedOrigins("http://localhost:5173","http://localhost:3000", "https://univ-fit.vercel.app", "https://univ-fit.com", "https://www.univ-fit.com")
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH")
.allowCredentials(true);
}
Expand Down

0 comments on commit 6a3a6a2

Please sign in to comment.