When I run my page in Safari, the JSON file loads successfully, but fails when I run it in Chrome. In the error console in Chrome it displays this error:
XMLHttpRequest cannot load file:///C:/Users/290851/Desktop/json-eg/test.json. Origin null is not allowed by Access-Control-Allow-Origin.
I also tested the JSON file and it's valid. Can someone tell me why this is happening and what is the solution for it?