Skip to content

Commit

Permalink
Update WebConfig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
junseokkim authored Jan 2, 2024
1 parent ca57428 commit f61df01
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/com/teami/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedHeaders("*")
.allowedMethods("GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "PATCH")
.exposedHeaders("Authorization");
.allowedOrigins("http://localhost:3000")
.allowedMethods("*")
}
}

0 comments on commit f61df01

Please sign in to comment.