From 975d0c579db0a24721e445991b533573db0ed6bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Wed, 1 Dec 2021 18:27:40 +0100 Subject: [PATCH] cookie de config lax --- core/module/config/view/index/index.css | 2 +- core/module/config/view/index/index.js.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/module/config/view/index/index.css b/core/module/config/view/index/index.css index 2a9f05c1..ba9a02f7 100755 --- a/core/module/config/view/index/index.css +++ b/core/module/config/view/index/index.css @@ -22,5 +22,5 @@ } .activeButton { - filter : brightness(125%); + filter : brightness(150%); } \ No newline at end of file diff --git a/core/module/config/view/index/index.js.php b/core/module/config/view/index/index.js.php index 6f0146e2..97de6f3b 100644 --- a/core/module/config/view/index/index.js.php +++ b/core/module/config/view/index/index.js.php @@ -208,7 +208,7 @@ function setCookie(name,value,days) { 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=lax"; } function getCookie(name) {