Browse Source

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

pull/235/head
YiwenXia 1 year ago
parent
commit
5fe0dd3d29
  1. 2
      server/src/main/java/cn/keking/service/FileHandlerService.java

2
server/src/main/java/cn/keking/service/FileHandlerService.java

@ -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