fetch(URL, { mode: 'cors', headers: { 'Access-Control-Allow-Origin':'*' } }) .then(response => response.json()) .then(data => {