mirror of
https://github.com/danog/code-server.git
synced 2024-11-27 04:45:52 +01:00
Set domain on cookie
This allows it to be used in subdomains.
This commit is contained in:
parent
13534fa0c0
commit
77ad73d579
@ -526,9 +526,12 @@ export class HttpServer {
|
||||
"Set-Cookie": [
|
||||
`${payload.cookie.key}=${payload.cookie.value}`,
|
||||
`Path=${normalize(payload.cookie.path || "/", true)}`,
|
||||
request.headers.host ? `Domain=${request.headers.host}` : undefined,
|
||||
// "HttpOnly",
|
||||
"SameSite=strict",
|
||||
].join(";"),
|
||||
]
|
||||
.filter((l) => !!l)
|
||||
.join(";"),
|
||||
}
|
||||
: {}),
|
||||
...payload.headers,
|
||||
|
Loading…
Reference in New Issue
Block a user