diff --git a/src/node/server.ts b/src/node/server.ts index a6613bd2..92c40628 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":