Add SameSite to auth cookie.

This commit is contained in:
Mike Cao 2020-08-20 10:34:02 -07:00
parent d95e149cf6
commit 343e59e6ff
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "umami",
"version": "0.10.3",
"version": "0.10.4",
"description": "A simple, fast, website analytics alternative to Google Analytics. ",
"author": "Mike Cao <mike@mikecao.com>",
"license": "MIT",

View File

@ -15,6 +15,7 @@ export default async (req, res) => {
const cookie = serialize(AUTH_COOKIE_NAME, token, {
path: '/',
httpOnly: true,
sameSite: true,
maxAge: 60 * 60 * 24 * 365,
});