Skip to content
Snippets Groups Projects
Commit f816b197 authored by Pesti Tamás's avatar Pesti Tamás
Browse files

Add cors rules for localhost

parent 255771d4
Branches
Tags
No related merge requests found
...@@ -10,7 +10,7 @@ public class CorsConfig implements WebMvcConfigurer { ...@@ -10,7 +10,7 @@ public class CorsConfig implements WebMvcConfigurer {
@Override @Override
public void addCorsMappings(CorsRegistry registry) { public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**") registry.addMapping("/**")
.allowedOrigins("https://vau-vau.web.app/", "http://localhost:3000", "http://localhost:3001", "http://localhost:3002", "http://localhost:8080") .allowedOrigins("http://localhost/", "https://localhost/", "http://127.0.0.1/", "https://127.0.0.1/", "https://vau-vau.web.app/", "http://localhost:3000", "http://localhost:3001", "http://localhost:3002", "http://localhost:8080")
.allowedMethods("*"); .allowedMethods("*");
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment