iOS Safari - Cannot make any requests from null iOS Safari - Cannot make any requests from null ajax ajax

iOS Safari - Cannot make any requests from null


I had the same problem, but I found the solution!

You have to restart the Safari process. Not only exit from the main window,but:

  • exit from Safari
  • double click on the exit button to show the active process
  • hold on Safari
  • click on minus
  • restart safari

strange but true.


To TFerrell:

Does RSVP.aspx response contains a PDF? If it is then try using my suggestion to Parched below.

To Parched:

The PDF you are trying to open will break the default PDF viewer of the new Safari mobile 5. The quick solution is to popup a new window for the PDF. This will break the new popup page but not the parent page. Another solution is to generate (if you are) the PDF in a well-formed PDF format.


Please remove the answer if this is not helping/correct ... I got not enough reputation to add a comment and this is only a guess, but I had a very similar issue today:

I was trying to get a jquerymobile thing to run in which I had an ajax request. To debug I switched to desktop chrome and it would always give me an error in the console:"XMLHttpRequest cannot load [url]. Origin null is not allowed by Access-Control-Allow-Origin."

The reason was because I was loading the ajax from file:///some.html of some different domain. Therefore this was a cross-site issue ..

I googled and found file:// sites (as for example if you use a phonegap made site on a mobile) do have the origin null and that issue seems to be difficult.

Anyway, I believe this might be a lead for you. You might need to configure your server to allow crossdomain-requests.

See this question for detailsXmlHttpRequest error: Origin null is not allowed by Access-Control-Allow-Origin

See this guide for more helphttp://usejquery.com/posts/the-jquery-cross-domain-ajax-guide

Personally I didn't try to solve this in depth as it works on my android emulator ... (I tried to set the "crossDomain" and "xhrFields" property on jquery-ajax to no avail)

cheers