CookieAuthenticationOptions.CookieHttpOnly Property

Definition

Caution

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

Caution

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

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

Determines if the browser should allow the cookie to be accessed by client-side javascript. The default is true, which means the cookie will only be passed to http requests and is not made available to script on the page.

C#
[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; }
C#
[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; }

Property Value

Attributes

Applies to

Produkt Verzie (Zastarané)
ASP.NET Core (2.0, 2.1, 2.2)