Update GlobalCorsConfig.java
This commit is contained in:
@@ -21,7 +21,7 @@ public class GlobalCorsConfig {
|
||||
CorsConfiguration config = new CorsConfiguration();
|
||||
//允许所有域名进行跨域调用
|
||||
config.addAllowedOriginPattern("*");
|
||||
//允许跨越发送cookie
|
||||
//允许跨域发送cookie
|
||||
config.setAllowCredentials(true);
|
||||
//放行全部原始头信息
|
||||
config.addAllowedHeader("*");
|
||||
|
||||
Reference in New Issue
Block a user