<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKHTTPCookieStore/CookiePolicy",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:@E@WKCookiePolicy"
  },
  "title" : "WKHTTPCookieStore.CookiePolicy"
}
-->

# WKHTTPCookieStore.CookiePolicy

An enumeration with cases that indicate whether a cookie store allows cookie storage.

```
enum CookiePolicy
```

## Topics

### Specifying a cookie policy

[`WKHTTPCookieStore.CookiePolicy.allow`](/documentation/WebKit/WKHTTPCookieStore/CookiePolicy/allow)

A case that indicates the cookie store allows cookie storage.

[`WKHTTPCookieStore.CookiePolicy.disallow`](/documentation/WebKit/WKHTTPCookieStore/CookiePolicy/disallow)

A case that indicates the cookie store does not allow cookie storage.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)