Set secure and samesite
This commit is contained in:
parent
02a82621b7
commit
326b5d6b5f
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue