mirror of
https://github.com/coder/code-server.git
synced 2026-11-05 08:23:15 +08:00
Set HttpOnly on cookies (#8110)
This commit is contained in:
@@ -330,6 +330,7 @@ export const getCookieOptions = (req: express.Request): express.CookieOptions =>
|
||||
domain: getCookieDomain(url.host, req.args["proxy-domain"]),
|
||||
path: normalize(url.pathname) || "/",
|
||||
sameSite: "lax",
|
||||
httpOnly: true,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user