SetCookieHeaderValue.SameSite Property

Definition

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.

Applies to