Skip to content

Commit

Permalink
chore: 프론트 cors 테스트를 위한 cors 설정 allowedHeaders, allowedOriginPatterns…
Browse files Browse the repository at this point in the history
… 모두 허용하도록 변경
  • Loading branch information
donggi-lee-bit committed Oct 10, 2023
1 parent a526070 commit eb50f4e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns()
.allowedOriginPatterns("*")
.allowedHeaders("*")
.allowedMethods(
HttpMethod.GET.name(),
HttpMethod.POST.name(),
Expand Down

0 comments on commit eb50f4e

Please sign in to comment.