Security & SEO

    Cookie security check

    Inspects Set-Cookie headers for Secure, HttpOnly, and SameSite flags — the three attributes that stop session hijacking in modern browsers.

    Updated 2026-07-10
    1 min read
    cookies
    session
    security

    Quick answer#

    Every Set-Cookie on your homepage and login page is checked for Secure, HttpOnly, and SameSite=Lax or Strict.

    What it checks#

  1. Secure flag (HTTPS-only)
  2. HttpOnly flag (blocks document.cookie access)
  3. SameSite=Lax or Strict
  4. Cookie prefixes (__Secure-, __Host-) bonus
  5. Where to find it in Lemwatch#

    Site details → Security → Cookies.

    How to fix#

  6. Update your session cookie config: add Secure + HttpOnly + SameSite=Lax.
  7. For strictly first-party auth, prefer SameSite=Strict.
  8. Use the __Host- prefix for session cookies bound to the origin.
  9. Re-run the check.
  10. FAQ#

    Will SameSite=Strict break OAuth?#

    It can — SameSite=Lax is safer for redirect-based auth.

    What about tracking cookies?#

    Same flags apply — Google, Segment, etc. usually get this right.

  11. Security headers
  12. X-Frame-Options check
  13. HSTS header check
  14. Was this article helpful?