2

I am testing web pages locally for display on iOS devices using XCode's iOS Simulator. I just upgraded XCode to 6.1 and when testing with iOS 8.1 in the simulator I now get the error:

XMLHttpRequest cannot load file:.... Cross origin requests are only supported for HTTP

This does not happen when testing with iOS 7.1 nor did it happen with XCode 6 and iOS 8.

Other than uploading the content to a server is there a way to resolve this?

Scott Witte
  • 389
  • 3
  • 12
  • Did you find a solution for this that could be shared? – mediaroot Dec 28 '15 at 00:12
  • Not yet, but I'm on the verge of installing a web server, probably XAMPP, which I already have on my Windows machine. That should work. – Scott Witte Dec 28 '15 at 21:49
  • Check working answer here https://stackoverflow.com/questions/46996292/ios-wkwebview-cross-origin-requests-are-only-supported-for-http – trungduc Jun 01 '18 at 04:47

0 Answers0