Chrome error - XMLHttpRequest cannot load
Chrome error - XMLHttpRequest cannot load

My datatable page working only in firefox :/
https://github.com/ppsirius/json
How i can fix it to open this page in chrome?
This discussion has been closed.
My datatable page working only in firefox :/
https://github.com/ppsirius/json
How i can fix it to open this page in chrome?
Answers
Are you using a server to load the file, or
file://
. Chrome won't allow XHR loading fromfile://
as that would be a huge security hole. I'd be surprised if Firefox does...Allan
Problem is even on local, the json file is on the same direction as index.html and script look like this "sAjaxSource": "test.json"
I've just tried your package and it works no problem on
localhost
in Chrome for me without modification.Allan
I run this on ubuntu and isn't working but when I upload on server it's working :|
You have to run it thought a web-server. As I noted above, you can't use the
file://
protocol. Allowing Ajax withfile://
is a huge security risk.Allan