--- title: Work with SameSite cookies in ASP.NET Core author: tdykstra description: Learn how to use to SameSite cookies in ASP.NET Core ms.author: tdykstra monikerRange: '>= aspnetcore-2.1' ms.custom: mvc ms.date: 5/20/2022 uid: security/samesite --- # Work with SameSite cookies in ASP.NET Core By [Rick Anderson](https://twitter.com/RickAndMSFT) SameSite is an [IETF](https://ietf.org/about/) draft standard designed to provide some protection against cross-site request forgery (CSRF) attacks. Originally drafted in [2016](https://tools.ietf.org/html/draft-west-first-party-cookies-07), the draft standard was updated in [2019](https://tools.ietf.org/html/draft-west-cookie-incrementalism-00). The updated standard is not backward compatible with the previous standard, with the following being the most noticeable differences: * Cookies without SameSite header are treated as `SameSite=Lax` by default. * `SameSite=None` must be used to allow cross-site cookie use. * Cookies that assert `SameSite=None` must also be marked as `Secure`. * Applications that use [`