I have a little problem... I try to GET a simple json file from my server for test (not real API).
I use VueJS and axios.
my code :
getServicesAPI() {
axios.get("http://51.91..../dist/API/Services.json").then((response) => {
console.log(response.data);
});
the error message is : Access to XMLHttpRequest at 'http://51.91..../dist/API/Services.json' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Can you help me please ? Thank you very much in advance.