Skip to content

Commit

Permalink
Added origin
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronenii committed Sep 9, 2024
1 parent 9f9304f commit 1174fb3
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 CorsConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:8080", "http://localhost")
.allowedOrigins("http://localhost:8080", "http://localhost", "http://sympoll.ddns.net")
.allowCredentials(true)
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedHeaders("*")
Expand Down

0 comments on commit 1174fb3

Please sign in to comment.