$ ./guess_the_languageCybersecurity
Cybersecurity · hard · #155

What does the HttpOnly flag do?

Set-Cookie: session=abc; HttpOnly; Secure
  1. Blocks JavaScript cookie access
  2. Encrypts the whole response
  3. Extends the cookie lifetime
  4. Shares it across domains
HttpOnly hides the cookie from document.cookie, mitigating XSS theft.
Play Cybersecurity ▸