CookieBuilder.SameSite 屬性

定義

Cookie 的 SameSite 屬性。 預設值為 Unspecified

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

屬性值

SameSiteMode

備註

決定將設定的值 SameSite

適用於