Lenguaje

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 <seealso cref="P:Microsoft. AspNetCore.Http.CookieBuilder.HttpOnly"></seealso> en Cookie.

Determina si el explorador debe permitir el acceso a la cookie mediante javascript del lado cliente. El valor predeterminado es true, lo que significa que la cookie solo se pasará a solicitudes HTTP y no estará disponible para el script en 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