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 4dc828a commit e6dc261
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentRes
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedMethods("*")
.allowedOriginPatterns("http://localhost") //원래는 * 이었음
.allowedOriginPatterns("http://localhost:3000") //원래는 * 이었음
.allowCredentials(true)
.exposedHeaders("Authorization")
.maxAge(3000);
Expand Down

0 comments on commit e6dc261

Please sign in to comment.