Skip to content

Commit

Permalink
fix: test for alter the CorsConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-urner committed Mar 14, 2024
1 parent 0cd062d commit 2a5287e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/dev/urner/volodb/rest/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public WebMvcConfigurer corsConfigurer() {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns("*") // Add your allowed originPatterns here
// .allowedOriginPatterns("*") // Add your allowed originPatterns here
.allowedOrigins("http://localhost:5500") // Add your allowed originPatterns here
.allowedMethods("*") // Add your allowed methods
.allowedHeaders("*") // Add your allowed headers
.allowCredentials(true)
Expand Down

0 comments on commit 2a5287e

Please sign in to comment.