samesite policy for cookie
This commit is contained in:
parent
c973bfc880
commit
136b174ec9
|
@ -19,7 +19,7 @@
|
|||
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=Strict";
|
||||
}
|
||||
function readCookie(name) {
|
||||
var nameEQ = name + "=";
|
||||
|
|
Loading…
Reference in a new issue