HttpOnlyPolicy Enum
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes the HttpOnly behavior for cookies.
public enum class HttpOnlyPolicy
C#
public enum HttpOnlyPolicy
type HttpOnlyPolicy =
Public Enum HttpOnlyPolicy
- Inheritance
-
HttpOnlyPolicy
Name | Value | Description |
---|---|---|
None | 0 | The cookie does not have a configured HttpOnly behavior. This cookie can be accessed by
JavaScript |
Always | 1 | The cookie is configured with a HttpOnly attribute. This cookie inaccessible to the
JavaScript |
Product | Versions |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |