Skip to content

Commit

Permalink
📦 [CHORE] CORS 정책 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ddongseop committed Feb 22, 2024
1 parent f4f79f4 commit 3869d0b
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:8080", "http://localhost:5173", "http://localhost:5174", "http://localhost:3000", "http://localhost:3001", "https://lecue-client.vercel.app", "https://www.lecue.me")
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH")
.allowCredentials(true)
// .allowedOrigins("http://localhost:8080", "http://localhost:5173", "http://localhost:5174", "http://localhost:3000", "http://localhost:3001", "https://lecue-client.vercel.app", "https://www.lecue.me")
.allowedOrigins("*")
// .allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH")
.allowedMethods("*")
.allowedHeaders("*")
.allowCredentials(false)
.maxAge(3000);
}
}

0 comments on commit 3869d0b

Please sign in to comment.