Context: I have a web application (html/js/css) that uses Highcharts library to generate data visualisation. Currently the visualisation is built with data from a local JSON file.
Goal: I want to replace this local JSON file because I need to access a JSON file stored in a Sharepoint folder instead.
Issue / What I have done:: I launched a development local Server with live reload feature and I replaced the filepath of my local JSON file to the Sharepoint link.
However, I got the following error:
Access to XMLHttpRequest at sharepoint_link (redirected from 'second_link') from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Question: Is there a way for me to access the file from my application? If so, how can I do it?
Daniel Mariano is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.