-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Same site attribute not used for test cookies #271
Comments
We are having the same issue. Console log is spammed with the missing sameSite warnings. On v7.1,
const areCookiesEnabled = () => {
const uid = String(new Date());
try {
const cookieName = Constants.COOKIE_TEST + base64Id();
set(cookieName, uid, {});
const _areCookiesEnabled = get(cookieName + '=') === uid;
set(cookieName, null, {});
return _areCookiesEnabled;
} catch (e) {}
return false;
}; |
Any update on this issue? Do you have any plans to take care of it? We're receiving many complains from our customers about missing same site attr for cookies and Amplitude is the only thing left to fix it. |
Hi @quarties ! sorry for the lack of communication - we flagged this as an issue a few weeks back and are hoping to resolve this in the coming (~1 -2) weeks - we'll keep you posted! |
@kelvin-lu thanks a lot! I really appreciate your effort <3 |
Hello,
I also see
Though I see there was a fix in v.7.2.0, I've been using the 7.3.3 and still see the error. |
I'm seeing this as well on Firefox using |
This warning shows up even with
sameSite
configured.It's because the function
areCookiesEnabled
sets the cookies and is called beforesameSite
attribute is set.Amplitude-JavaScript/src/metadata-storage.js
Lines 12 to 21 in 92829d1
The text was updated successfully, but these errors were encountered: