This commit is contained in:
xiangwb
2018-05-03 17:15:00 +08:00
parent 64507c9bec
commit f25c1c417e
4 changed files with 24 additions and 2 deletions
@@ -87,7 +87,7 @@ public class DispatcherServletConfig extends WebMvcConfigurerAdapter {
.allowCredentials(true)
.allowedOrigins("*")
.allowedHeaders("*")
.allowedMethods("GET", "POST", "DELETE", "PUT", "OPTIONS")
.allowedMethods("GET", "POST", "DELETE", "PUT", "PATCH", "OPTIONS")
.maxAge(3600);
super.addCorsMappings(registry);
}