<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKError/Code/javaScriptAppBoundDomain",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:@E@WKErrorCode@WKErrorJavaScriptAppBoundDomain"
  },
  "title" : "WKError.Code.javaScriptAppBoundDomain"
}
-->

# WKError.Code.javaScriptAppBoundDomain

An error that indicates JavaScript execution failed due to an app-bound domain restriction.

```
case javaScriptAppBoundDomain
```

## Discussion

This error occurs when a script targets a frame that is not in an app-bound domain.

---

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)