Skip to content

Commit

Permalink
Fix: Samesite option for client-side cookies implemented.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glomberg committed Dec 15, 2019
1 parent e2b1eda commit ea5a87b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Antispam/Antispam.body.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public static function AddJSCode() {
ctMouseDataCounter = 0;
function ctSetCookie(c_name, value) {
document.cookie = c_name + "=" + encodeURIComponent(value) + "; path=/";
document.cookie = c_name + "=" + encodeURIComponent(value) + "; path=/; samesite=lax;";
}
ctSetCookie("ct_ps_timestamp", Math.floor(new Date().getTime()/1000));
Expand Down

0 comments on commit ea5a87b

Please sign in to comment.