I am using react.js, and I'm trying to integrate lucky orange into my web app. I added the code snippet in the head tag of the index.html
file, but I get a warning saying:
A cookie associated with a cross-site resource at http://luckyorange.net/ was set without the
SameSite
attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set withSameSite=None
andSecure
.
I tried setting the cookie in the head of the index.html document like this:
document.cookie = 'same-site-cookie=foo; SameSite=Lax';
document.cookie = 'cross-site-cookie=bar; SameSite=None; Secure';
But I'm still getting that error. What am I doing wrong and how can I fix it?