CookieBuilder.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.
The SameSite attribute of the cookie. The default value is Unspecified but specific components may use a different value.
public:
virtual property Microsoft::AspNetCore::Http::SameSiteMode SameSite { Microsoft::AspNetCore::Http::SameSiteMode get(); void set(Microsoft::AspNetCore::Http::SameSiteMode value); };
public virtual Microsoft.AspNetCore.Http.SameSiteMode SameSite { get; set; }
member this.SameSite : Microsoft.AspNetCore.Http.SameSiteMode with get, set
Public Overridable Property SameSite As SameSiteMode
Property Value
Remarks
Determines the value that will be set for SameSite.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for