Skip to content

Commit

Permalink
[BE] fix : cors method 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
320Hwany committed May 3, 2024
1 parent 6400841 commit 97575d6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions backend/src/main/java/moim_today/global/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ public void addArgumentResolvers(final List<HandlerMethodArgumentResolver> resol
@Override
public void addCorsMappings(final CorsRegistry registry) {
registry.addMapping("/**")
.allowedMethods("*")
.allowedHeaders("*")
.allowedOrigins("*")
.allowCredentials(true)
.allowedOriginPatterns("*");
.allowedHeaders("*")
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")
.exposedHeaders("*");
}
}

0 comments on commit 97575d6

Please sign in to comment.