There is a small web app that I want to scrape. It loads various json snippets into a panel on the page when you click on a tree widget. I estimate that there are no fewer than about 500 such json files. I've managed to figure out how to grab those, and I was hoping that I could simply place those in the appropriate folder and the xhr calls would retrieve them.
As it is, I receive this particular error message when clicking on my offline version of the webapp:
XMLHttpRequest cannot load file:///json/ajaxbrowse.php?n=5&x=1&z=-1&cs=1&ix=-1. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource
Is there a way to accomplish the loading of external files here without a web app (or disabling Chrome security features)? The html file and the json files live in the same folder. Given their format (json), I can't easily load these into iframes.
Googling's not showing me much for this, and I'm not sure what javascript/browser feature I might be searching for.