Condividi tramite


CookieAuthenticationOptions.CookieHttpOnly Proprietà

Definizione

Attenzione

This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.SameSite.

Attenzione

This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.HttpOnly.

Questa proprietà è obsoleta e verrà rimossa in una versione futura. L'alternativa consigliata è in Cookie.

Determina se il browser deve consentire l'accesso al cookie da parte del codice JavaScript sul lato client. Il valore predefinito è true. Questo significa che il cookie verrà passato solo alle richieste HTTP e non è reso disponibile per lo script nella pagina.

public:
 property bool CookieHttpOnly { bool get(); void set(bool value); };
[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.SameSite.")]
public bool CookieHttpOnly { get; set; }
[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.HttpOnly.")]
public bool CookieHttpOnly { get; set; }
[<System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.SameSite.")>]
member this.CookieHttpOnly : bool with get, set
[<System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.HttpOnly.")>]
member this.CookieHttpOnly : bool with get, set
Public Property CookieHttpOnly As Boolean

Valore della proprietà

Attributi

Si applica a