Skip to content

Commit

Permalink
[fix] CORS 관련(쿠키) 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
nimikgnoej committed Aug 31, 2023
1 parent d583f96 commit 0e6e718
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/example/taskqueue/config/WebMvcConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentRes
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
//.allowedOrigins("*")
.allowedMethods("*")
.allowCredentials(false)
.allowCredentials(true)
.allowedOriginPatterns("*")
.exposedHeaders("Authorization")
.maxAge(3000);
//첫줄 주석처리 후 true로 바꿈
}
}

0 comments on commit 0e6e718

Please sign in to comment.