Same site attribute not used for test cookies
See original GitHub issueThis warning shows up even with sameSite
configured.
Cookie “amplitude_cookie_test” will be soon rejected because it has the “sameSite” attribute set to “none” or an invalid value, without the “secure” attribute. To know more about the “sameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite
It’s because the function areCookiesEnabled
sets the cookies and is called before sameSite
attribute is set.
https://github.com/amplitude/Amplitude-JavaScript/blob/92829d1588db8eb01fcefa84ee8951ede3543459/src/metadata-storage.js#L12-L21
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:6 (1 by maintainers)
Top Results From Across the Web
SameSite cookies explained - web.dev
Learn how to mark your cookies for first-party and third-party usage with the SameSite attribute. You can enhance your site's security by ...
Read more >Tips for testing and debugging SameSite-by-default and ...
Testing under Lax+POST Under the new SameSite behavior, any cookie that was not set with a specified SameSite attribute value will be treated ......
Read more >SameSite Cookie Not Implemented - Invicti
A SameSite Cookie Not Implemented is an attack that is similar to a Code Execution via SSTI (Python Tornado) that -level severity. Categorized...
Read more >This Set-Cookie didn't specify a "SameSite" attribute and was ...
I tried to solve this by making the server use SameSite=None (development only). This causes a different error: Connection isn't secure . This ......
Read more >SameSite Cookie Attribute Changes - Auth0
SameSite attributes ; secure, Allows the browser to send the cookie only to a secure context; whether the context is considered secure or...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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!
We are having the same issue. Console log is spammed with the missing sameSite warnings. On v7.1,
areCookiesEnabled
is to blame:set
with no options, so the sameSite warnings will be printed everytime.