SameSite
Cheat sheet · https://pcornel.dk/topic.php?topic=4752
Answer
SameSite is a cookie attribute that controls cross-site sending: Strict, Lax (the browser default) or None, which requires Secure. Lax or Strict blocks most CSRF attacks.
Remember
- SameSite can be Strict, Lax or None.
- None requires Secure.
- Lax blocks most CSRF while allowing normal links.
First checks
curl -sI https://<site> | grep -i samesite— SameSite attribute- Lax vs Strict vs None — choice
- SameSite=None requires Secure — cross-site cookies
Verify in this order
cross-site request → SameSite rule → cookie sent or not
Where it usually breaks
First mismatch in asset/subject identity → trust/authentication → authorization/policy → enforcement/control → telemetry/detection → protected outcome/response; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4752