Skip to content

Commit

Permalink
Fix: Cookies. 'samesite' attribute added.
Browse files Browse the repository at this point in the history
  • Loading branch information
safronik authored and safronik committed Feb 24, 2021
1 parent b3c703e commit dcf351b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CleanTalk/Base/CleanTalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public static function getTemplateAddon() {
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 dcf351b

Please sign in to comment.