It shows below message in the console
.
sandbox.js:1 Fetch API cannot load file:///C:/Users/Lizzi/Desktop/novice%20to%20ninja/todos/luigi.json. URL scheme must be "http" or "https" for CORS request
I'm new to aynchronouse
programming but I have read up on CORS
solutions and tried things like getting a chrome extension and disabling web security for my google chrome but it still doesn't work.
fetch('todos/luigi.json').then((response)=>{
console.log('resolved',response);
}).catch((err)=>{
console.log('rejected', err);
});