I have an HTML/Javascript application that uses jQuery to communicate with a web server (that I don't control). I run it from a local file (file:///app.html
) and this works fine on Safari. However, it fails in Firefox, I see all my XHR requests being turned into OPTION requests, which the server does not like. Apparently it is running afoul of cross-site-scripting rules.
What is the spec regarding XHR from local pages, how do the different browsers handle it, and what is the preferred way to develop these client-side-only mashup type applications?