Skip to content
websniffer.click

Set-Cookie

Response header, cookies & auth

Stores a cookie in the browser.

Set-Cookie: __Host-session=abc123; Path=/; Secure; HttpOnly; SameSite=Lax

Session cookies should carry Secure (HTTPS only), HttpOnly (no JavaScript access) and SameSite=Lax or Strict (limits cross-site sending, a CSRF defence).

Cookies prefixed with __Host- must be Secure, have Path=/ and no Domain attribute, which prevents subdomains from overwriting them.

Check it on a live site

Run a header check on any URL to see whether and how it sends Set-Cookie.

Specification: RFC 6265