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); }