Having a minor issue... Trying to retrieve a basic json file from my server for testing purposes (not an actual API).
Utilizing VueJS and axios.
Here is my code :
getServicesAPI() {
axios.get("http://51.91..../dist/API/Services.json").then((response) => {
console.log(response.data);
});
The error message reads : 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.
Any assistance with this matter would be greatly appreciated. Thank you in advance.