Sdílet prostřednictvím


CookieAuthenticationOptions.CookieHttpOnly Vlastnost

Definice

Upozornění

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

Upozornění

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

Tato vlastnost je zastaralá a v budoucí verzi se odebere. Doporučená alternativa je na Cookie.

Určuje, jestli má prohlížeč povolit přístup k souboru cookie pomocí javascriptu na straně klienta. Výchozí hodnota je true, což znamená, že soubor cookie se bude předávat pouze požadavkům HTTP a nebude k dispozici pro skripty na stránce.

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

Hodnota vlastnosti

Atributy

Platí pro