This commit is contained in:
koksnuss 2020-05-11 13:40:59 +02:00
parent 942f7a40fe
commit 72b5dad648

View File

@ -33,8 +33,8 @@ class Cookie {
let date = new Date();
date.setTime(date.getTime() + (expire_days * 24 * 60 * 60 * 1000));
let expires = 'expires=' + date.toUTCString();
document.cookie = name + '=' + value + ';' + expires + ';path=' + path;
let expires = date.toUTCString();
document.cookie = name + '=' + value + '; Expires=' + expires + '; Path=' + path + '; SameSite=Strict';
}