diff --git a/CHANGELOG.md b/CHANGELOG.md index bc4194d8..e04a563f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,7 +43,7 @@ VS Code v0.00.0 ### Bug Fixes -- item +- Fix logout when using a base path (#3608) ### Documentation diff --git a/src/node/routes/logout.ts b/src/node/routes/logout.ts index e42789b4..d1a19dfe 100644 --- a/src/node/routes/logout.ts +++ b/src/node/routes/logout.ts @@ -8,7 +8,7 @@ router.get("/", async (req, res) => { // Must use the *identical* properties used to set the cookie. res.clearCookie(Cookie.Key, { domain: getCookieDomain(req.headers.host || "", req.args["proxy-domain"]), - path: req.body.base || "/", + path: req.query.base || "/", sameSite: "lax", })