Update GlobalCorsConfig.java

This commit is contained in:
macro
2025-07-01 14:52:05 +08:00
parent 2066a55212
commit 7a1ca5d112

View File

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