Set secure and samesite

This commit is contained in:
Midgard 2021-07-24 17:48:08 +02:00
parent 02a82621b7
commit 326b5d6b5f
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -6,7 +6,7 @@
const YEAR = 60 * 60 * 24 * 365; const YEAR = 60 * 60 * 24 * 365;
const storeCookieAndReload = (name, value) => { const storeCookieAndReload = (name, value) => {
document.cookie = name + " = " + value + "; Path=/; Max-Age=" + (50 * YEAR); document.cookie = name + " = " + value + "; Path=/; Secure; SameSite=strict; Max-Age=" + (50 * YEAR);
location.reload(); location.reload();
} }