Cookie Inspector & SameSite Auditor

List this page's cookies and audit a pasted Set-Cookie header for security flags

Ad placeholder (leaderboard)

Cookies carry sessions, preferences and tracking identifiers, and their security depends on three flags: Secure, HttpOnly and SameSite. This tool lists the cookies the current page can read, and — because the most security-relevant cookies are HttpOnly and invisible to JavaScript — also parses a pasted Set-Cookie header so you can audit those flags directly.

How it works

document.cookie returns only non-HttpOnly cookies for the current origin as name=value pairs; it never exposes flags. So the page list shows what scripts can read, which is itself a useful privacy signal. For full auditing, paste a raw Set-Cookie response header. The parser splits on ;, reads Secure, HttpOnly, SameSite, Domain, Path, Max-Age and Expires, then applies rules:

  • SameSite=None requires Secure, or modern browsers reject the cookie.
  • A cookie whose name looks session/auth-like (session, sid, token, auth) should have Secure and HttpOnly.
  • Missing SameSite defaults to Lax in modern browsers but is worth setting explicitly.

Example

Pasting sid=abc123; Path=/; SameSite=None raises a warning: SameSite=None is set without Secure, so the cookie will be dropped and the session may break. Adding Secure; HttpOnly clears the warnings.

Notes

Everything runs locally. The auditor inspects only the text you paste — it does not make any network request and never reveals HttpOnly cookies the browser hides from scripts.

Ad placeholder (rectangle)