Skip to content

Commit

Permalink
cross allow all patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
Teller501 committed Dec 11, 2023
1 parent e47058a commit 8916655
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public AuthenticationManager authenticationManager(AuthenticationConfiguration a
public void addCorsMappings(CorsRegistry registry) {
System.out.println("addCorsMappings called");
registry.addMapping("/**") // /** means match any string recursively
.allowedOriginPatterns("http://localhost:*", "http://127.0.0.1:*/") //Multiple strings allowed. Wildcard * matches all port numbers.
.allowedOriginPatterns("*") //Multiple strings allowed. Wildcard * matches all port numbers.
.allowedMethods("GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS") // decide which methods to allow
.allowCredentials(true);
}
Expand Down

0 comments on commit 8916655

Please sign in to comment.