Search code examples
iosajaxuiwebviewnsurlcache

iOS ajax call from a local html to a local xml resource not working


In my iOS app I am loading a local html file which internally is making an ajax call to a local xml resource which is failing. I am using NSURLCache to intercept the request.


Solution

  • Previously i was opening the html directly in the browser. Using GCDWebServer to host a simple server did the work and opened the html file with localhost.