From 261a92e574b5ef2af38301f647bf97148b4a6814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Fri, 12 Apr 2024 19:37:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20=E5=8A=A0=E5=AF=86?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=A4=B4=E8=A2=AB=E6=8B=A6=E6=88=AA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/dromara/gateway/filter/GlobalCorsFilter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ruoyi-gateway/src/main/java/org/dromara/gateway/filter/GlobalCorsFilter.java b/ruoyi-gateway/src/main/java/org/dromara/gateway/filter/GlobalCorsFilter.java index fb736e1c..a2482e79 100644 --- a/ruoyi-gateway/src/main/java/org/dromara/gateway/filter/GlobalCorsFilter.java +++ b/ruoyi-gateway/src/main/java/org/dromara/gateway/filter/GlobalCorsFilter.java @@ -25,7 +25,10 @@ public class GlobalCorsFilter implements WebFilter, Ordered { /** * 这里为支持的请求头,如果有自定义的header字段请自己添加 */ - private static final String ALLOWED_HEADERS = "X-Requested-With, Content-Language, Content-Type, Authorization, clientid, credential, X-XSRF-TOKEN, isToken, token, Admin-Token, App-Token"; + private static final String ALLOWED_HEADERS = + "X-Requested-With, Content-Language, Content-Type, " + + "Authorization, clientid, credential, X-XSRF-TOKEN, " + + "isToken, token, Admin-Token, App-Token, Encrypt-Key, isEncrypt"; /** * 允许的请求方法