I started taking a look at this and I keep running into the same error as I'm testing. I have the API call working fine in a stand-alone script but just not sure if it is a server issue or something I'm doing that is hanging things up.
I'm trying to use axios to make the call on component create or mount but keep getting this error message:
Access to XMLHttpRequest at 'https://nccovid.vizioz.com/api/v1/resource/settings' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
GET https://nccovid.vizioz.com/api/v1/resource/settings net::ERR_FAILED
Do you know if this is something with the server or an issue with my code? I apologize if this is something basic or obvious. I am pretty new to this with JavaScript. Thanks for your help!
I started taking a look at this and I keep running into the same error as I'm testing. I have the API call working fine in a stand-alone script but just not sure if it is a server issue or something I'm doing that is hanging things up.
I'm trying to use
axios
to make the call on component create or mount but keep getting this error message:Here is my
axios
API call for your reference:Do you know if this is something with the server or an issue with my code? I apologize if this is something basic or obvious. I am pretty new to this with JavaScript. Thanks for your help!