WKWebView cannot load non-app-bound domains

Hi,

We have configured WKAppBoundDomains and are using limitsNavigationsToAppBoundDomains to enable Service Workers, which works perfectly. However, we are now unable to load a WKWebView with any domain that is not included in the app-bound domains.

For these other WKWebView instances, we have explicitly set config.limitsNavigationsToAppBoundDomains = false, but it doesn’t seem to have any effect. We don’t require access to the restricted APIs enabled by app-bound domains for these instances—we simply want them to load and perform basic website functionality.

Is there a way to enable Service Workers selectively in some WKWebView instances while allowing others to remain unaffected by the App-Bound Domains restriction?

Thank you for your help!

Best regards, Rose Ding

This sounds like a bug. Could you create file a Feedback issue, or perhaps open a bug at https://bugs.webkit.org. We could act more quickly if you had a test app illustrating the issue.

WKWebView cannot load non-app-bound domains
 
 
Q