fix #23
This commit is contained in:
parent
942f7a40fe
commit
72b5dad648
@ -33,8 +33,8 @@ class Cookie {
|
|||||||
|
|
||||||
let date = new Date();
|
let date = new Date();
|
||||||
date.setTime(date.getTime() + (expire_days * 24 * 60 * 60 * 1000));
|
date.setTime(date.getTime() + (expire_days * 24 * 60 * 60 * 1000));
|
||||||
let expires = 'expires=' + date.toUTCString();
|
let expires = date.toUTCString();
|
||||||
document.cookie = name + '=' + value + ';' + expires + ';path=' + path;
|
document.cookie = name + '=' + value + '; Expires=' + expires + '; Path=' + path + '; SameSite=Strict';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user