diff --git a/src/node/server.ts b/src/node/server.ts index a6613bd2e..92c406282 100644 --- a/src/node/server.ts +++ b/src/node/server.ts @@ -298,7 +298,10 @@ export abstract class Server { return response; } if (!this.authenticate(request)) { - return { redirect: "/login" }; + return { + redirect: "/login", + headers: { "Set-Cookie": `password=` } + }; } break; case "/static":