|
|
|
@ -50,8 +50,8 @@ public class WebMvcConfigurer extends WebMvcConfigurationSupport { |
|
|
|
|
// corsConfiguration.addAllowedOrigin("*"); // 允许任何头
|
|
|
|
|
corsConfiguration.addAllowedOrigin("https://new.iasf.ac.cn"); //允许信任域名
|
|
|
|
|
corsConfiguration.addAllowedOrigin("https://www.iasf.ac.cn"); //允许信任域名
|
|
|
|
|
corsConfiguration.addAllowedOrigin("http://192.168.31.125:8095"); //允许信任域名
|
|
|
|
|
corsConfiguration.addAllowedOrigin("http://192.168.31.125:8089"); //允许信任域名
|
|
|
|
|
// corsConfiguration.addAllowedOrigin("http://192.168.31.125:8095"); //允许信任域名
|
|
|
|
|
// corsConfiguration.addAllowedOrigin("http://192.168.31.125:8088"); //允许信任域名
|
|
|
|
|
corsConfiguration.addAllowedOrigin("http://10.10.11.7"); //允许信任域名
|
|
|
|
|
corsConfiguration.addAllowedMethod("*"); // 允许任何方法(post、get等)
|
|
|
|
|
return corsConfiguration; |
|
|
|
|