I am coding a webapp and i get this kind of 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 i get this error because the HTML file is accessed with file: protocol and not http: protocol which creates compatibility issues with XMLHttpRequest (That's a guess). I would like to know if there's any ways of testing my pages using http protocol only with my local machine (because only later in this project i will have access to a server, and therefore the app will only work using http, but for now i would like to be able to test it properly).
Is there any workarrounds that i could do on a local machine and that could with with the three browsers IE, Firefox and Chrome?
Thanks.