Temporarily rolling back SameSite Cookie Changes
blog.chromium.org
blog.chromium.org
Mozilla did the same for their TLS 1.0/TLS 1.1 change: https://hacks.mozilla.org/2020/02/its-the-boot-for-tls-1-0-a...
I was reading the console.log while debugging some code with the Opera browser and it contained a message warning me they were going to implement it in just a few weeks.
For me it had to do with delivering .js app code from one server that connected to a CouchDB server running on a different vps, so the impact would've resulted in users calling and me having no clue about why things were broken.
I don't know how I missed hearing about it before but the CouchDB team had already done what was needed on their end. Finding out how to implement it was a bit difficult for me though, but I got lucky when someone brought it up on the CouchDB users email list and their message pointed me to what I needed to do. I generally just glance at those emails.
I suppose I ought to bookmark web.dev and make a point to visit it. Thank you for sharing that link dmix.
In php.ini, this is as easy as
session.cookie_samesite = "Lax"Once all browsers behave like Chrome is trying to (SameSite=Lax by default) we will have dramatically less CSRF on the web. Other browsers are likely to adopt this change eventually if Chrome sticks with it. You will at least need to consider users with out-of-date browsers for a while yet (and implement XSRF tokens and/or explicitly opt-in to Lax/whatever).
The old behaviour will still (and always?) be around with SameSite=None. It has uses, but misuses could create CSRF vulnerabilities. There will still be CSRF problems on the web but it will get a lot rarer and, mercifully, not the default.
Lax and Strict are adjectives. What are they even modifying? Not "SameSite"! They are referring to "SameSiteRestriction" or something.
Why not align with CS of CSRF as AllowCrossSite, and values Always / OnUserRequest / Never ?
But rolling it back is fine if they're going to go through with it later.
Found a workaround, but I'm glad they're doing this for the duration.
Is my understanding correct?