<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "macCatalyst: 18.4.0 -",
    "macOS: 15.4.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKWebExtensionController/Configuration-swift.class/defaultWebsiteDataStore",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKWebExtensionControllerConfiguration(py)defaultWebsiteDataStore"
  },
  "title" : "defaultWebsiteDataStore"
}
-->

# defaultWebsiteDataStore

The default data store for website data and cookie access in extension contexts.

```
var defaultWebsiteDataStore: WKWebsiteDataStore! { get set }
```

## Discussion

This property sets the primary data store for managing website data, including cookies, which extensions can access, subject to the granted permissions within the extension contexts. Defaults to [`default()`](/documentation/WebKit/WKWebsiteDataStore/default()).

> Note: In addition to this data store, extensions can also access other data stores, such as non-persistent ones, for any open tabs.

---

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)