Commit ad2f8d24 authored by 赵啸非's avatar 赵啸非

提交配置校验

parent b606d122
...@@ -23,9 +23,9 @@ public class CorsConfig implements WebMvcConfigurer { ...@@ -23,9 +23,9 @@ public class CorsConfig implements WebMvcConfigurer {
CorsConfiguration configuration = new CorsConfiguration(); CorsConfiguration configuration = new CorsConfiguration();
//允许跨域访问的域名 //允许跨域访问的域名
//configuration.addAllowedOrigin("*"); //configuration.addAllowedOrigin("*");
configuration.addAllowedOrigin("http://192.168.0.98:11072"); configuration.addAllowedOrigin("http://192.168.0.98");
configuration.setAllowCredentials(true); //运行携带cookie configuration.setAllowCredentials(true); //运行携带cookie
configuration.addAllowedMethod("*"); //代表所有请求方法 // configuration.addAllowedMethod("*"); //代表所有请求方法
configuration.addAllowedHeader("*"); //允许携带任何头信息 configuration.addAllowedHeader("*"); //允许携带任何头信息
//初始化cors配置源对象 //初始化cors配置源对象
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment