From 067b2bd3fa3b738c0c9beef91d91a7b60dc87750 Mon Sep 17 00:00:00 2001 From: padams Date: Mon, 20 Sep 2021 00:21:51 +0000 Subject: [PATCH] adding samesite param to cookies in tracker. --- src/Tracker/State.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Tracker/State.php b/src/Tracker/State.php index e4f91aa..d093112 100644 --- a/src/Tracker/State.php +++ b/src/Tracker/State.php @@ -367,7 +367,9 @@ private function createCookie($cookie_name, $cookie_value, $expires = 0, $path = if ( !$this->getSetting( 'cookie_persistence' ) ) { $expires = 0; } - + + $path .= '; SameSite=lax'; + setcookie($cookie_name, $cookie_value, $expires, $path, $domain); }