master
颜超 2 years ago
parent cc24c27801
commit f60f9b6f6b

@ -27,7 +27,7 @@ public class WebMvcConfig extends WebMvcConfigurationSupport {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedHeaders("Content-Type", "x-requested-with", "X-Custom-Header")
.allowedHeaders("Content-Type", "x-requested-with", "X-Custom-Header","sec-ch-ua","sec-ch-ua-mobile")
.allowedOriginPatterns("*")
.allowedMethods("GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS")
.allowCredentials(true)

Loading…
Cancel
Save