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 f61df01 commit 6533432
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/teami/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000")
.allowedOrigins("http://localhost:8080", "http://localhost:3000", "https://handyteam.shop")
.allowCredentials(true)
.allowedHeaders("*")
.allowedMethods("*")
}
}
Expand Down

0 comments on commit 6533432

Please sign in to comment.