From 72b5dad648d7ae55daae01cf4e813d1b79429354 Mon Sep 17 00:00:00 2001 From: koksnuss Date: Mon, 11 May 2020 13:40:59 +0200 Subject: [PATCH] fix #23 --- coinmanager/coinc/static/coinc/modules/cookie.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'; }