Skip to content

Commit

Permalink
rewrite: cors 설정 재설정
Browse files Browse the repository at this point in the history
  • Loading branch information
yunjunghun0116 committed Aug 2, 2024
1 parent 0a7ae30 commit 98d546d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/gift/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ public void addInterceptors(InterceptorRegistry registry) {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000", "http://localhost:8080")
.allowedOrigins("http://localhost:3000", "localhost:3000")
.allowedMethods("GET", "POST", "PUT", "DELETE")
.allowedHeaders("*")
.maxAge(1800);
.allowCredentials(true)
.maxAge(3600);
}
}

0 comments on commit 98d546d

Please sign in to comment.