I am trying to use a relative path in JavaScript to get a JSON file which is placed in my asp.net folder structure. To get the file I am using d3.json()
. I have used below code
d3.json("../Resources/flare.json", function (error, root) {
...some code;
});
Here is my directory structure:
Unfortunately, this is not working.
I am getting error :Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.