Share via


HttpOnlyPolicy Enum

Definition

Describes the HttpOnly behavior for cookies.

public enum class HttpOnlyPolicy
public enum HttpOnlyPolicy
type HttpOnlyPolicy = 
Public Enum HttpOnlyPolicy
Inheritance
HttpOnlyPolicy

Fields

Name Value Description
None 0

The cookie does not have a configured HttpOnly behavior. This cookie can be accessed by JavaScript document.cookie API.

Always 1

The cookie is configured with a HttpOnly attribute. This cookie inaccessible to the JavaScript document.cookie API.

Applies to