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

提交配置校验

parent 03a04b7e
...@@ -23,6 +23,7 @@ public class CorsConfig implements WebMvcConfigurer { ...@@ -23,6 +23,7 @@ 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.setAllowCredentials(true); //运行携带cookie configuration.setAllowCredentials(true); //运行携带cookie
configuration.addAllowedMethod("*"); //代表所有请求方法 configuration.addAllowedMethod("*"); //代表所有请求方法
configuration.addAllowedHeader("*"); //允许携带任何头信息 configuration.addAllowedHeader("*"); //允许携带任何头信息
......
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