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,
|
||||
|
Reference in New Issue
Block a user