标签:mapping str ade cors gis ati max 配置 map
@Configuration
public class CrosConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedMethods("GET", "POST", "HEAD", "PUT", "DELETE", "OPTIONS")
.allowCredentials(true)
.maxAge(3600)
.allowedHeaders("*");
}
}
标签:mapping str ade cors gis ati max 配置 map
原文地址:https://www.cnblogs.com/pinked/p/12508375.html