Partager via


CookieAuthenticationOptions.CookieHttpOnly Propriété

Définition

Attention

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

Attention

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

Cette propriété est obsolète et sera supprimée dans une version ultérieure. L’alternative recommandée est sur Cookie.

Détermine si le navigateur doit autoriser le javascript côté client à accéder au cookie. La valeur par défaut est true. Cela signifie que le cookie est transmis uniquement aux demandes HTTP, et est inaccessible aux scripts figurant dans la page.

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

Valeur de propriété

Attributs

S’applique à