I have searched and searched, but all results I found are for a webpage on a server, not a local file which should be legal to lookup. Whenever I do this:
var music = fetch("playback.json").then(response => response.json());
I get this error:
Fetch API cannot load file:///C:/[removed path]/json_store/playback.json. URL scheme must be "http" or "https" for CORS request.
Folder structure looks like this:
/json_store/
/index.html
/script.js
/playback.json
My HTML/JS file are in the same directory as the JSON file, but it seems this is still giving me an error for some reason. Also according to Mozilla's docs this IS legal to do, as they even provide an example for it. Is there something I am doing wrong, or was this feature removed?