Skip to content

Commit

Permalink
fix: logo not showing with ACCESS_KEY (#14722)
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyRL authored Mar 8, 2024
1 parent 1762692 commit 7641e7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware/access-control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const middleware: MiddlewareHandler = async (ctx, next) => {
const accessKey = ctx.req.query('key');
const accessCode = ctx.req.query('code');

if (requestPath === '/' || requestPath === '/robots.txt') {
if (requestPath === '/' || requestPath === '/robots.txt' || requestPath === '/favicon.ico' || requestPath === '/logo.png') {
await next();
} else {
if (config.accessKey && !(config.accessKey === accessKey || accessCode === md5(requestPath + config.accessKey))) {
Expand Down

0 comments on commit 7641e7d

Please sign in to comment.