To solve this problem you need to install CORS on the website you’re making the call TO not FROM. You then configure CORS to allow the site you are calling FROM to be a valid URL. I’ve provided a detailed explanation of Solving No Access-Control-Allow-Origin with Node js and Express
What is CORS?
The best way to describe this is a quote from Wikipedia: “Cross-origin resource sharing is a mechanism that allows restricted resources on a web page to be requested from another domain outside the domain from which the first resource was served. A web page may freely embed cross-origin images, stylesheets, scripts, iframes, and videos.”
StackOverFlow has an incredible list of questions on how to enable CORS basically for any type of server-side code and even browser.