Skip to content

Commit bb0e987

Browse files
committed
fix(cors): 添加 X-App-Key 到允许的请求头列表
1 parent 1407e57 commit bb0e987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

im-gateway/src/main/java/com/imai/gateway/filter/GlobalCorsFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class GlobalCorsFilter implements WebFilter, Ordered {
2828
private static final String ALLOWED_HEADERS =
2929
"X-Requested-With, Content-Language, Content-Type, " +
3030
"Authorization, clientid, credential, X-XSRF-TOKEN, " +
31-
"isToken, token, Admin-Token, App-Token, Encrypt-Key, isEncrypt";
31+
"isToken, token, Admin-Token, App-Token, Encrypt-Key, isEncrypt, X-App-Key";
3232

3333
/**
3434
* 允许的请求方法

0 commit comments

Comments
 (0)