Skip to content

Commit

Permalink
πŸ› [FIX] CORS 였λ₯˜ ν•΄κ²°
Browse files Browse the repository at this point in the history
  • Loading branch information
dong2ast committed Jan 17, 2024
1 parent c041c38 commit f82918c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class WebConfig implements WebMvcConfigurer {
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")
.allowedMethods("GET", "POST", "PUT", "DELETE")
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH")
.allowCredentials(true)
.maxAge(3000);
}
Expand Down

0 comments on commit f82918c

Please sign in to comment.