Skip to content

Commit

Permalink
add: cors 허용 주소 추가(localhost:3000)
Browse files Browse the repository at this point in the history
  • Loading branch information
yunjunghun0116 committed Aug 2, 2024
1 parent 0981907 commit 897a8d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/gift/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ 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);
Expand Down

0 comments on commit 897a8d2

Please sign in to comment.