I am loading html into a UIWebView from iOS local file system.
That HTML page is requesting json data on our server.
I can fetch the json data, so the question is, is there no cross domain policy in a UIWebView, or am I missing out something here?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s the same as desktop Safari:
If you’re loading a local (file) url in a UIWebView then there are no cross domain restrictions
If you’re loading external urls they’ll be limited to that domain, unless the site has correct Access-Control-Allow-Origin headers set.