0

I have looked at multiple links which discuss this but none really fit the scenario I am currently in. Those are:

WKWebView: Remote url accessing local files

Swift - using CSS and JS files in WKWebView

Load local Html file doesn't refer the js file in UIWebView

How to load local file via iframe inside html file in wkwebview?

I have a WKWebView which has all the delegate stubs for accepting local Bundle.main html files, and have also given .allow status to all of those files and associated url references in the delegate.

The html contains both jquery and an astronomical js which both are referred as remote files.

When I run python -m http.server and go to 0.0.0.0:8000 it works fine, however not in the application using WKWebView. The page does load with the title, but the javascripts are blocked.

All defaults for allowing remote url requests are set. I tried various other sites, including my own server hosting the same file, all pages load everything, but not the html file wit the js.

What am I missing?

triple7
  • 502
  • 2
  • 17
  • Have you tried out this https://stackoverflow.com/questions/46996292/ios-wkwebview-cross-origin-requests-are-only-supported-for-http? – iUrii Jul 12 '21 at 12:45

0 Answers0