|
|
|
|
|
by jacobparker
2362 days ago
|
|
Hey, there are some important mistakes in this warning: 1. The value that is invalid for older browsers (including older versions of Chrome!) is None, not Lax. It is always (as far as anyone knows safe to explicitly set SameSite=Lax in all browsers, assuming your site is ready for that. 2. The latest Safari (v13) has changed their behaviour to match the latest spec. See this article for details on detecting/dealing with it: https://www.chromium.org/updates/same-site/incompatible-clie... TL;DR: old (but not too old) Chrome responds by rejecting the cookie entirely (which Google says was an valid interpretation of the spec, at the time of those versions) and old (but not too old) Safari responds by interpreting the None value as Strict (I think there is some debate on whether the spec allowed this back then, but at this point it doesn't matter/I don't care). |
|
> See this article for details on detecting/dealing with it: https://www.chromium.org/updates/same-site/incompatible-clie....
Yes, they recommend using a few dozen lines of user-agent sniffing code. Despite the fact that user-agent sniffing is generally considered bad practice.