diff --git a/packages/backend/src/server/web/index.ts b/packages/backend/src/server/web/index.ts index b36b8485..ec64bc9b 100644 --- a/packages/backend/src/server/web/index.ts +++ b/packages/backend/src/server/web/index.ts @@ -54,7 +54,9 @@ const bullBoardPath = "/queue"; // Authenticate app.use(async (ctx, next) => { - if (ctx.path === bullBoardPath || ctx.path.startsWith(`${bullBoardPath}/`)) { + const url = decodeURI(ctx.path); + + if (url === bullBoardPath || url.startsWith(`${bullBoardPath}/`)) { const token = ctx.cookies.get("token"); if (token == null) { ctx.status = 401;