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

提交配置校验

parent ad2f8d24
......@@ -23,7 +23,7 @@ public class CorsConfig implements WebMvcConfigurer {
CorsConfiguration configuration = new CorsConfiguration();
//允许跨域访问的域名
//configuration.addAllowedOrigin("*");
configuration.addAllowedOrigin("http://192.168.0.98");
// configuration.addAllowedOrigin("http://192.168.0.98");
configuration.setAllowCredentials(true); //运行携带cookie
// configuration.addAllowedMethod("*"); //代表所有请求方法
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