mirror of
https://github.com/wushuo894/ani-rss.git
synced 2026-03-13 09:20:23 +00:00
feat: 支持x-api-key鉴权
This commit is contained in:
@@ -20,7 +20,7 @@ public class ApiKey implements Function<HttpServletRequest, Boolean> {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (String key : List.of("api-key", "s")) {
|
||||
for (String key : List.of("api-key", "x-api-key", "s")) {
|
||||
String s = request.getHeader(key);
|
||||
if (StrUtil.isBlank(s)) {
|
||||
s = request.getParameter(key);
|
||||
|
||||
Reference in New Issue
Block a user