$ ./guess_the_languageCybersecurity
Cybersecurity · easy · #186

What does the HttpOnly flag prevent?

  1. Script reading the cookie
  2. Sending over plain HTTP
  3. Sharing with subdomains
  4. Storing beyond the session
HttpOnly hides the cookie from document.cookie, so an XSS payload cannot steal it directly.
Play Cybersecurity ▸