In OS X, I have a simple html page that I open with a URL file:///...
. This page contains javascript that is trying to load the resource http://...
.
This works with Safari, but does not work in Firefox or Chrome. The error message I get from these browsers is:
A request for cross-request is blocked: the same origin policy prevents reading remote resource http: // whatever / etc . (Reason: CORS header "Access-Control-Allow-Origin" is missing).
Can I make a page work in Firefox and Chrome?
source
share