SpinTheMic
Pro

Explain it in 60 seconds

Cookie security attributes

Frontend Engineering · Async JavaScript and the Browser · Intermediate

What do the HttpOnly, Secure and SameSite cookie attributes do?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • HttpOnly: not accessible to JavaScript (XSS protection).
  • Secure: only over HTTPS.
  • SameSite: Strict/Lax/None controls cross-site sending (CSRF).
  • None requires Secure.
  • Domain/Path scope.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics