Partilhar via


CookieAuthenticationOptions.CookieHttpOnly Propriedade

Definição

Cuidado

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

Cuidado

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

Essa propriedade está obsoleta e será removida em uma versão futura. A alternativa recomendada está em Cookie.

Determina se o navegador deve permitir que o cookie seja acessado pelo JavaScript do lado do cliente. O padrão é verdadeiro, o que significa que o cookie só será passado para as solicitações HTTP e não será disponibilizado para o script na 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 da propriedade

Atributos

Aplica-se a