验证中...
Languages: Java
Categories: 编程语言基础
Latest update 2019-07-12 11:24
BaseService
Raw Copy
public class BaseService extends WebMvcConfigurerAdapter{
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**").allowedOrigins("*")
.allowedMethods("GET", "POST", "PUT", "OPTIONS", "DELETE", "PATCH")
.allowCredentials(true).maxAge(3600);
}
}

Comment list( 0 )

You need to Sign in for post a comment

Help Search