Join our Newsletter — 33% off our NHI Course

AppBoundDomains

AppBoundDomains is an iOS control that limits which websites a WKWebView can trust and interact with. Developers declare approved domains in the app bundle, which helps constrain JavaScript access, script injection, and cookie handling to known sites. The goal is to reduce exposure to untrusted web content inside mobile apps.

What AppBoundDomains Actually Does

AppBoundDomains is a web-view boundary control, not a general browser security feature. It lets an iOS app define a bounded set of approved domains so the embedded WKWebView instance is intended to interact only with known sites and content paths.

That matters because the control changes the trust model inside the app. Instead of treating every loaded page as equally capable of influencing the app, the developer narrows which origins can be used for scripting, cookies, and related web content behaviors. The result is a tighter trust boundary around hybrid-app browsing.

How the Domain Boundary Works

The key idea is origin scoping. AppBoundDomains tells the app which websites are part of the expected application surface and which are not. When the web view stays within those approved origins, the app can support web-backed workflows with less exposure to unrelated or attacker-controlled content.

This is especially relevant in hybrid apps that rely on web content for login flows, embedded portals, or dynamic UI. The control does not make web content magically safe, but it reduces the blast radius by making the app explicit about which domains it is willing to trust. For a broader control baseline around secure configuration and access constraints, see NIST SP 800-53 Rev 5 Security and Privacy Controls.

Security Benefits and Practical Limits

AppBoundDomains is most useful when the main risk is untrusted web content reaching privileged app context. By constraining approved origins, it helps reduce opportunities for script injection, cookie abuse, cross-site data mixing, and accidental trust in third-party pages that happen to load inside the app.

It is still only one layer of defense. If the app itself loads unsafe JavaScript, exposes sensitive interfaces to the web view, or permits user-controlled navigation into untrusted flows, the control cannot fully compensate. The trust list must also stay aligned with the app’s real business behavior, otherwise the app can become brittle or fail open in practice.

For teams that want a companion reference on origin trust, web service exposure, and broken web trust boundaries, the OWASP API Security Top 10 is useful because many of the same authorization and trust mistakes reappear when mobile apps bridge into backend services.

When AppBoundDomains Is Used Well

The strongest use cases are apps that embed a small, known set of first-party or tightly controlled domains and need to reduce the risk that arbitrary web navigation changes the app’s security posture. It is a good fit when the app design already assumes a bounded web estate and the developer can enumerate those origins with confidence.

It is a weaker fit for apps that depend on broad browsing, user-supplied URLs, or frequent third-party content changes. In those cases, the control may be too restrictive for product requirements, or too easy to misconfigure as the domain set evolves. That tension is why it should be treated as a design decision, not a checkbox.

For teams evaluating secure mobile configuration more broadly, CIS Benchmarks provide a practical model for hardening choices that reduce unnecessary exposure while preserving intended functionality.

Risk and Threat Considerations

AppBoundDomains reduces exposure, but the remaining risk is that a trusted web boundary can still be abused if an attacker gains control of a permitted origin, injects content into an approved flow, or tricks the app into interacting with an untrusted page through a weak navigation design. The control is only as strong as the domain inventory and the web content supply chain behind it.

Failure mechanism: A permissive or stale allowlist can let hostile content operate inside a web view that the app still treats as trusted, which can widen scripting, cookie, or session abuse paths.

Impact: Sensitive data, authenticated sessions, and embedded business flows may be exposed to cross-site manipulation, credential theft, or unauthorized interaction inside the mobile app.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5, OWASP ASVS and CIS Controls v8 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST SP 800-53 Rev 5 AC-3 — Access Enforcement AppBoundDomains constrains which web origins can act inside the app
AC-6 — Least Privilege The allowlist limits web view trust to only approved domains
SC-18 — Mobile Code The control reduces exposure from scripts and active web content in the app
Recommendation — Enforce origin-based access limits for web content loaded into the app. Restrict web view trust to the minimum set of approved domains. Limit active web content to approved sources and review script exposure.
OWASP ASVS V3 — Web Frontend Security The term concerns controlling web content and browser-like behavior in an app
V14 — Data Protection Approved domains help reduce exposure of cookies and sensitive web data
Recommendation — Validate embedded web content sources and restrict untrusted origin interaction. Keep cookies and sensitive data scoped to trusted origins only.
CIS Controls v8 CIS-16 — Application Software Security App-bound web content is an application-layer security boundary
Recommendation — Review application trust boundaries for embedded web content and navigation.

Practitioner Guidance

What to watch for: Treat AppBoundDomains as a living trust boundary. The approved list should match the app’s actual web estate, and any change to hosted domains, redirect behavior, or embedded content should be reviewed as a security-relevant application change, not just a release detail.

Governance implication: Ownership should sit with the team that controls both the app and the web properties it trusts, because mismatches between mobile release cadence and web content changes are where this control most often weakens.