"...admin-cloud-eureka-server/vscode:/vscode.git/clone" did not exist on "fb3951135ecc3a7e368a3ab3a496253dfff29aa5"
Commit 7a1ca5d1 authored by macro's avatar macro
Browse files

Update GlobalCorsConfig.java

parent 2066a552
...@@ -21,7 +21,7 @@ public class GlobalCorsConfig { ...@@ -21,7 +21,7 @@ public class GlobalCorsConfig {
CorsConfiguration config = new CorsConfiguration(); CorsConfiguration config = new CorsConfiguration();
//允许所有域名进行跨域调用 //允许所有域名进行跨域调用
config.addAllowedOriginPattern("*"); config.addAllowedOriginPattern("*");
//允许跨发送cookie //允许跨发送cookie
config.setAllowCredentials(true); config.setAllowCredentials(true);
//放行全部原始头信息 //放行全部原始头信息
config.addAllowedHeader("*"); config.addAllowedHeader("*");
......
Supports Markdown
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