mirror of
https://github.com/4cuck/nitter-status.git
synced 2026-10-27 00:57:39 +00:00
Table cookie SameSite + Secure
This commit is contained in:
1 parent
7d4de1b483
commit
634a622412
1 file changed
+2
-2
@@ -69,7 +69,7 @@ function setCookie(name, value, days) {
|
||||
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
||||
expires = "; expires=" + date.toUTCString();
|
||||
}
|
||||
document.cookie = name + "=" + (value || "") + expires + "; path=/";
|
||||
document.cookie = name + "=" + (value || "") + expires + "; path=/; SameSite=Lax; Secure";
|
||||
}
|
||||
|
||||
function getCookie(name) {
|
||||
@@ -81,4 +81,4 @@ function getCookie(name) {
|
||||
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user