diff --git a/coinmanager/coinc/static/coinc/modules/cookie.mjs b/coinmanager/coinc/static/coinc/modules/cookie.mjs index 36a127a..517c283 100644 --- a/coinmanager/coinc/static/coinc/modules/cookie.mjs +++ b/coinmanager/coinc/static/coinc/modules/cookie.mjs @@ -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'; }