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 8c91c00 commit 512d415
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/example/taskqueue/config/WebMvcConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentRes
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
//.allowedOrigins("*")
.allowedMethods("*")
.allowedOrigins("http://localhost:3000","http://localhost:8080") //원래는 * 이었음
.allowedOriginPatterns("https?://localhost:\\d+") //원래는 * 이었음
.allowCredentials(true)
.exposedHeaders("Authorization")
.maxAge(3000);
Expand Down

0 comments on commit 512d415

Please sign in to comment.