Archived
1
0

Fix incorrect logout base (#3611)

Fixes #3608.
This commit is contained in:
Asher 2021-06-15 15:11:01 -05:00 committed by GitHub
parent 3241a4f521
commit b59b3936d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ VS Code v0.00.0
### Bug Fixes ### Bug Fixes
- item - Fix logout when using a base path (#3608)
### Documentation ### Documentation

View File

@ -8,7 +8,7 @@ router.get("/", async (req, res) => {
// Must use the *identical* properties used to set the cookie. // Must use the *identical* properties used to set the cookie.
res.clearCookie(Cookie.Key, { res.clearCookie(Cookie.Key, {
domain: getCookieDomain(req.headers.host || "", req.args["proxy-domain"]), domain: getCookieDomain(req.headers.host || "", req.args["proxy-domain"]),
path: req.body.base || "/", path: req.query.base || "/",
sameSite: "lax", sameSite: "lax",
}) })