Skip to content

Commit

Permalink
adding samesite param to cookies in tracker.
Browse files Browse the repository at this point in the history
  • Loading branch information
padams committed Sep 20, 2021
1 parent 1005882 commit 067b2bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Tracker/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 067b2bd

Please sign in to comment.