samesite
SameSite is a cookie attribute used by web browsers to control whether a cookie is sent with cross-site requests. It is set in the Set-Cookie header as SameSite=value and works with other cookie attributes such as Secure and HttpOnly. The goal is to reduce the chances that a cookie is sent in contexts initiated by other sites, thereby lowering the risk of certain cross-site attacks such as CSRF (cross-site request forgery).
The attribute supports three values: Strict, Lax, and None. Strict means the cookie is sent only in
Compatibility and defaults: If a cookie omits the SameSite attribute, many browsers treat it as SameSite=Lax
History and impact: The SameSite attribute gained prominence in the 2010s as browsers standardized anti‑CSRF measures.