Commit c46648bd authored by muhong's avatar muhong

修改 跨域配置

parent 2384de30
...@@ -15,7 +15,7 @@ public class WebCorsConfig implements WebMvcConfigurer { ...@@ -15,7 +15,7 @@ public class WebCorsConfig implements WebMvcConfigurer {
// 设置允许跨域的路径 // 设置允许跨域的路径
registry.addMapping("/**") registry.addMapping("/**")
// 设置允许跨域请求的域名 // 设置允许跨域请求的域名
.allowedOrigins("*") .allowedOriginPatterns("*")
// 是否允许证书 不再默认开启 // 是否允许证书 不再默认开启
.allowCredentials(true) .allowCredentials(true)
// 设置允许的方法 // 设置允许的方法
......
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