颜超 2 years ago
parent 2c9833de3c
commit cc24c27801

@ -30,7 +30,6 @@ public class WebMvcConfig extends WebMvcConfigurationSupport {
.allowedHeaders("Content-Type", "x-requested-with", "X-Custom-Header") .allowedHeaders("Content-Type", "x-requested-with", "X-Custom-Header")
.allowedOriginPatterns("*") .allowedOriginPatterns("*")
.allowedMethods("GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS") .allowedMethods("GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS")
.allowedOrigins("*")
.allowCredentials(true) .allowCredentials(true)
.maxAge(3600); .maxAge(3600);
} }

Loading…
Cancel
Save