I want to load data from a JSON file in my local using JS/jQuery preferably.
I know there are atleast 10 question on SO with the same answers.
I don't want those. In all of those answers I get a "jquery.min.js:4 XMLHttpRequest cannot load file:///C:/Users/.../js.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
"
Please suggest me a solution to this. If your suggestion is set up a server and host the file there then use it, please help me do it?
Any possible working suggestion is welcome(except the old add json using a script tag, etc). Thanks.