CookieOptions.SameSite Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the value for the SameSite attribute of the cookie. The default value is Unspecified
public:
property Microsoft::AspNetCore::Http::SameSiteMode SameSite { Microsoft::AspNetCore::Http::SameSiteMode get(); void set(Microsoft::AspNetCore::Http::SameSiteMode value); };
public Microsoft.AspNetCore.Http.SameSiteMode SameSite { get; set; }
member this.SameSite : Microsoft.AspNetCore.Http.SameSiteMode with get, set
Public Property SameSite As SameSiteMode
Property Value
The SameSiteMode representing the enforcement mode of the cookie.