未验证 提交 77ad73d5 编写于 作者: A Asher

Set domain on cookie

This allows it to be used in subdomains.
上级 13534fa0
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册