HerokuLenora PorterTutorial
Chrome’s Changes Could Break Your App: Prepare for SameSite Cookie Updates
Summary
Chrome's SameSite changes alter when third-party cookies are sent in cross-site requests, affecting sites that rely on embedded services, analytics, advertising, or other cross-domain functionality. Starting February 4, 2020, Chrome was to reject such cookies unless they were secured and assigned an appropriate SameSite value, as part of a secure-by-default model intended to reduce CSRF attacks, other vulnerabilities, and privacy leaks. The post explains first- versus third-party cookies, contrasts Strict, Lax, and None, and gives scenarios for selecting each setting; SameSite=None must be paired with Secure and HTTPS. It also recommends enabling Chrome 80 flags to test for errors, then updating application cookies or coordinating with third-party providers. Server-side support is noted for PHP, NodeJS, Python, Flask, and Ruby on Rails, with direct JavaScript cookie handling also mentioned.
Context
Chrome announced a secure-by-default cookie model because cross-site cookie access can enable cross-site request forgery, other security vulnerabilities, and privacy leaks. The change also affects advertisers, publishers, and companies relying on cookies for targeting or cross-domain services.
Approach / What changed
The post explains first-party and third-party cookies, compares the Strict, Lax, and None attributes, and maps each to common scenarios. It recommends testing with Chrome 80 flags, correcting cookie attributes, pairing SameSite=None with Secure, and contacting providers whose domains the site does not control.
Takeaways
SameSite=Strict blocks cross-site sharing, while SameSite=Lax permits cookies on top-level navigation using a safe method such as GET.
SameSite=None preserves cross-site cookie use but must be combined with Secure; otherwise Chrome rejects the cookie.
Testing involves enabling SameSite-related Chrome flags, checking for errors, and updating server-side or JavaScript cookie handling where needed.
Source and freshness
- Source
- heroku.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.