I encode webapp and get these errors with chrome:
XMLHttpRequest cannot load file:///C:\Users\Tordah\Desktop\foobar.xml. Cross origin requests are only supported for HTTP.
&
Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load
I believe that I am getting this error because to the HTML: protocol file, and not to http: protocol, which creates compatibility problems with XMLHttpRequest (this is an assumption). I would like to know if there are ways to test my pages using the http protocol only with my local machine (because only later in this project will I have access to the server, and therefore the application will only work using http, but for now I would like to be able to verify it correctly).
Are there any workspaces that I could do on the local machine that could work with the three browsers IE, Firefox, and Chrome?
Thank.
source
share