RoastMyOpsec

Blog

Safety OPSEC guides

Defensive defaults that keep browsers, cookies, email, and TLS from doing attackers' homework. Ten guides per page.

Page 2 of 7

Safety · Aug 29, 2025

SameSite=Strict vs Lax for Login Cookies

SameSite=Strict vs Lax for login cookies is when the browser attaches that cookie on a request that started on another site: Lax still sends it on top-level GET navigations, while Strict withholds it on all cross-site…

Read guide →

Safety · Aug 21, 2025

SameSite=None vs Lax for Third-Party Embeds

SameSite=None vs Lax for third-party embeds is a cookie-attachment decision, not a branding toggle. SameSite=Lax (or Strict) keeps the session cookie off most cross-site POSTs and off many cross-site navigations.…

Read guide →

Safety · Jun 14, 2025

Referrer-Policy no-referrer vs strict-origin

Referrer-Policy no-referrer vs strict-origin is how much of the current URL the browser may put in Referer: no-referrer sends nothing, while strict-origin sends only the origin on HTTPS-to-HTTPS hops and nothing on a…

Read guide →

Safety · Jan 29, 2025

Permissions-Policy unload vs beforeunload

Permissions-Policy unload vs beforeunload is a browser-lifecycle split, not two spellings of one header: the unload feature gates the window unload event (handlers that break back-forward cache), while beforeunload is a…

Read guide →

Safety · Dec 26, 2024

Origin vs Referer Headers for CSRF Defense

Origin vs Referer for CSRF defense is a metadata choice, not a token replacement. The Origin header carries scheme-host-port without a path. The Referer (legacy spelling) can include the full URL — which is a leak — and…

Read guide →