fetch(proxy + url, {
headers: {
Accept: '*/*',
'Accept-Language': 'en-US,en;q=0.5',
Referer: 'https://observablehq.com/@randomfractals/fetch',
},
cache: 'no-store',
mode: 'cors',
redirect: 'follow',
}).then(response => {
if (!response.ok) throw new Error(response.status);
return response.json();
}).catch(error => {return error;})