I believe I know the root of this issue. In my case, the webview has its base URL set as a valid location, with a scheme of https. WKWebView sees custom schemes as insecure. WKWebView also does not allow pages loaded with a secure scheme to fetch from domains which are not secure.
If I set the base url of my page to nil or an http URL, fetch loads from the custom scheme handler as expected.
I haven't yet found any way to change the policy to allow the "insecure" fetch to proceed.
Topic:
Safari & Web
SubTopic:
General
Tags: