Sprache

CookieAuthenticationOptions.CookieHttpOnly Eigenschaft

Definition

Achtung

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

Achtung

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

Diese Eigenschaft ist veraltet und wird in einer zukünftigen Version entfernt. Die empfohlene Alternative ist <seealso cref="P:Microsoft. AspNetCore.Http.CookieBuilder.HttpOnly"></seealso> für Cookie.

Bestimmt, ob der Browser zulassen soll, dass auf das Cookie von clientseitigem Javascript zugegriffen werden kann. Der Standardwert ist "true", was bedeutet, dass das Cookie nur an HTTP-Anforderungen übergeben wird und nicht für Skripts auf der Seite verfügbar gemacht wird.

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

Eigenschaftswert

Attribute

Gilt für: