Skip to content

Commit

Permalink
hotfix : cors 대응
Browse files Browse the repository at this point in the history
  • Loading branch information
bo-ram-bo-ram committed Jul 14, 2024
1 parent b2c0cc1 commit 6b3ec87
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/com/pickple/server/global/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:8080", "http://localhost:8081", "http://localhost:5173",
"https://pick-ple.com:5173", "https://pick-ple.com")
.allowedMethods("HEAD", "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")
.allowedHeaders("*")
.allowedOrigins("*")
.allowedMethods("GET", "POST", "DELETE", "PUT", "PATCH", "OPTIONS")
.maxAge(3000);
}

Expand Down

0 comments on commit 6b3ec87

Please sign in to comment.