Compartir a través de


CookieAuthenticationOptions.CookieHttpOnly Propiedad

Definición

Precaución

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

Precaución

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

Esta propiedad está obsoleta y se quitará en una versión futura. La alternativa recomendada es en Cookie.

Determina si el explorador debe permitir que el javascript del lado cliente acceda a la cookie. El valor predeterminado es true, lo que significa que la cookie solo se pasará a solicitudes http y no estará disponible para el script de la página.

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

Valor de propiedad

Atributos

Se aplica a