$ ./guess_the_languageCybersecurity
Cybersecurity · hard · #316

Why will modern browsers reject this cookie?

Set-Cookie: sid=abc123; SameSite=None; HttpOnly
  1. HttpOnly needs a Domain set
  2. SameSite=None needs Secure
  3. The value is far too short
  4. It has no Max-Age attribute
Chromium-based browsers and Firefox require any SameSite=None cookie to also carry Secure, so it is only sent over HTTPS; otherwise the cookie is dropped.
Play Cybersecurity ▸