调整 kk-proxy-authorization 参数从 header 头里获取,增强认证参数获取的安全性

pull/235/head
YiwenXia 1 year ago
parent 713edcfb8d
commit 5fe0dd3d29

@ -469,7 +469,7 @@ public class FileHandlerService implements InitializingBean {
if (StringUtils.hasText(userToken)) {
attribute.setUserToken(userToken);
}
String kkProxyAuthorization = req.getParameter( "kk-proxy-authorization");
String kkProxyAuthorization = req.getHeader( "kk-proxy-authorization");
attribute.setKkProxyAuthorization(kkProxyAuthorization);
}

Loading…
Cancel
Save