Skip to content

Commit

Permalink
Allow Cross-Origin PUT Requests (#543)
Browse files Browse the repository at this point in the history
* Allow Cross-Origin PUT Requests

* Allow all request methods for CORS
  • Loading branch information
DevDonut authored Jan 16, 2021
1 parent 464837d commit cb4019e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public WebMvcConfigurer corsConfigurer() {
return new WebMvcConfigurer() {
@Override
public void addCorsMappings(@Nonnull CorsRegistry registry) {
registry.addMapping("/**").exposedHeaders("X-Auth-Token");
registry.addMapping("/**").exposedHeaders("X-Auth-Token").allowedMethods("*");
}
};
}
Expand Down

0 comments on commit cb4019e

Please sign in to comment.