Looking to build a work-around of the following.
$.getJSON('myfile.json', function (data) {
showAll(data);
});
I want to avoid using a webserver, but just want to access the file directly.
getJSON uses a web request, which presents the error: XMLHttpRequest cannot load file:///Users/me/Documents/project/myfile.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
I want a work around. I've read things about renaming to .js and then just linking it from the HTML file. Any ideas?