SetCookieHeaderValue.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 a value for the SameSite
cookie attribute.
"SameSite" cookies offer a robust defense against CSRF attack when deployed in strict mode, and when supported by the client.
public:
property Microsoft::Net::Http::Headers::SameSiteMode SameSite { Microsoft::Net::Http::Headers::SameSiteMode get(); void set(Microsoft::Net::Http::Headers::SameSiteMode value); };
public Microsoft.Net.Http.Headers.SameSiteMode SameSite { get; set; }
member this.SameSite : Microsoft.Net.Http.Headers.SameSiteMode with get, set
Public Property SameSite As SameSiteMode
Property Value
Remarks
See https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-05#section-8.8.