Hi, not sure whats happening i think before it did work but now it's not working on Chrome and Safari, but it does work on Firefox.
The error i'm getting from Chrome is:
Access to XMLHttpRequest at 'file:///Volumes/Data/Marius/Desktop/88b1b73dc43f470c96290fe22fa695d3/data.json' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
I'm basically just trying the demo, on code pen it's working but when i export and then open the HTML not working :( https://codepen.io/airnan/project/editor/ZeNONO
Hi, for security reasons browsers don't allow opening json files when the html is executed from the file system. Firefox indeed doesn't behave like the other browsers in this matter.
You need to use a local web server or upload it to some host.
Most helpful comment
Hi, for security reasons browsers don't allow opening json files when the html is executed from the file system. Firefox indeed doesn't behave like the other browsers in this matter.
You need to use a local web server or upload it to some host.