Skip to content

Commit

Permalink
πŸ› [FIX] Swagger CORS μ„€μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
ddongseop committed Jan 17, 2024
1 parent ce73930 commit 80b0f32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ 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")
.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)
.maxAge(3000);
Expand Down

0 comments on commit 80b0f32

Please sign in to comment.