Skip to content

Commit

Permalink
deploy: Fix CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
giovanni-orciuolo committed Feb 14, 2024
1 parent 0c204e9 commit 317273d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:8000", "http://localhost:5173", "https://codekatabattle.orciuolo.it", "https://api.codekatabattle.orciuolo.it")
.allowedOrigins("http://localhost:8000", "http://localhost:5173", "https://codekatabattle.onrender.com", "https://codekatabattle-api.onrender.com")
.allowedMethods("GET", "POST", "PUT", "DELETE", "HEAD")
.maxAge(3600);
}
Expand Down

0 comments on commit 317273d

Please sign in to comment.