I feel like I have solved this before, but I am running into a cross origin error when converting the app.coffee to app.js and trying to host locally. The following error shows up in the console:
file:///F:[email protected]/layers.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
I know I should use a server, or disable origin rules on chrome or safari (which does work) however in this specific case I am loading the html file in another way and can't do either... I don't have control over how the html gets consumed (local vs server)
Is there any way to make it work from the file itself? Can I use JSONP somehow in this odd case? Is it because I'm accessing it from another drive on Windows? (F:\)