Access to XMLHttpRequest at \'API_URL\' from origin \'http://localhost:8080\' has been blocked by CORS policy: Response to preflight request doesn\'t pass a
you need to enable cross-origin resource in your API, so that it can be accessed from localhost as caller.
More info here https://enable-cors.org/server.html and here https://www.html5rocks.com/en/tutorials/cors/