Back to Guides
Guide16 September 2026

Is SameSite=None safe?

Decloak is an AI-powered web security intelligence platform that scans a site's HTTP/TLS posture, JavaScript, and third-party scripts to produce a report anyone can read. This guide is part of Decloak's library of practical, source-backed security guidance.

In this guide
  1. Key takeaways
  2. What does SameSite=None actually do?
  3. Why does the browser require Secure with SameSite=None?
  4. Security implications of using SameSite=None
  5. When can SameSite=None be considered safe?
  6. How to implement SameSite=None correctly
  7. Bottom line

Key takeaways

What does SameSite=None actually do?

SameSite=None tells the browser to send the cookie with both same - site and cross - site requests. It does not give any CSRF protection because the cookie is included in every request, including POSTs triggered from another site.

The attribute is meant for situations where a cookie must be available to third - party services, such as embedded payment widgets or federated login flows. If your application does not need that, you should avoid SameSite=None.

Why does the browser require Secure with SameSite=None?

When SameSite=None is used, browsers reject the cookie unless it also has the Secure flag. This requirement forces the cookie to travel only over HTTPS, which protects it from passive network eavesdropping.

The Secure flag is not required for SameSite=Lax or SameSite=Strict, so the enforcement is specific to SameSite=None. The rule also helps limit tracking by preventing long - lived cross - site cookies from being sent over plain HTTP.

Security implications of using SameSite=None

When can SameSite=None be considered safe?

ConditionRequired actions
Cross - site functional requirement (e.g., OAuth redirect, embedded widget)- Set SameSite=None; Secure.

How to implement SameSite=None correctly

  1. Add the Secure attribute to the Set - Cookie header.
Set-Cookie: sessionId=abc123; SameSite=None; Secure; Path=/; HttpOnly; SameSite=None
  1. Ensure every endpoint that serves the cookie is reachable only via HTTPS.
  2. Deploy a CSRF mitigation strategy:
  1. Test across browsers, especially older versions of Safari and Chrome, to verify that the cookie is accepted and sent as expected.

Bottom line

SameSite=None is not a security feature; it is a compatibility flag that deliberately disables SameSite restrictions. The only safety it adds is the mandatory Secure flag, which forces HTTPS transmission. To use it safely, you must serve your site over HTTPS and add independent CSRF protections. For most applications that do not need cross - site cookie access, avoid SameSite=None and stick with SameSite=Lax (default) or SameSite=Strict.


References

Free security scan

See what's actually exposed on your site.

Decloak's free scan runs in about 15 seconds, no account required, and covers:

  • HTTP/TLS security posture
  • JavaScript CVEs
  • Exposed Supabase/Lovable/Base44 misconfigurations
  • AI-written executive summary