Skip to content

Commit

Permalink
fix SameSite attribute to ensure the cookie is not rejected by more s…
Browse files Browse the repository at this point in the history
…ecure browsers Alex-D#60
  • Loading branch information
andrewholgate committed Jan 18, 2021
1 parent 525ea19 commit ec6221e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cookies-eu-banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
var date = new Date();
date.setTime(date.getTime() + this.cookieTimeout);

document.cookie = name + '=' + value + ';expires=' + date.toGMTString() + ';path=/';
document.cookie = name + '=' + value + ';expires=' + date.toGMTString() + ';path=/' + ';secure;SameSite=Lax';
},

/*
Expand Down

0 comments on commit ec6221e

Please sign in to comment.