0

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.

Cœur
  • 37,241
  • 25
  • 195
  • 267
  • 1
    Paste some code and error description, might help. – Jageen May 17 '17 at 04:32
  • Are you using any server or directly opening the html file using browser. If opening directly the xml will not get loaded due to CORS in browser. User server and put both files in same folder..or access he xml file through server .. – Atul Sharma May 17 '17 at 05:24
  • 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. – Syed Khaja Taqui Uddin May 18 '17 at 07:56

1 Answers1

0

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.