diff --git a/packages/backend/src/server/web/index.ts b/packages/backend/src/server/web/index.ts index 38d193683..90126440c 100644 --- a/packages/backend/src/server/web/index.ts +++ b/packages/backend/src/server/web/index.ts @@ -52,7 +52,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;