API Fetch failed with No 'Access-Control-Allow-Origin' header is present on the requested resource
API Fetch failed with No 'Access-Control-Allow-Origin' header is present on the requested resource I've been running out of my mind trying to deal with this problem. I'm running React.js on my local machine under http://localhost:3000 and i'm trying to use the fetch method to load some data from http://api.population.io:80/1.0/countries http://api.population.io:80/1.0/countries According to the API owner "The standard response format is JSON (application/json) with CORS for cross-domain requests." I've tried various combinations of headers and what i have right now is this setup: fetch("http://api.population.io:80/1.0/countries",{ method: 'GET', mode: 'cors', headers: new Headers({ "Content-Type": "application/json", 'Access-Control-Allow-Origin':'*' }) }) According to Chrome, the following headers are being sent through the request: Access-Control-Request-Hea...