Published
Edited
Apr 11, 2019
9 forks
29 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
fetch(proxy + url, {
headers: {
Accept: '*/*',
'Accept-Language': 'en-US,en;q=0.5',
Referer: 'https://observablehq.com/@randomfractals/fetch',
},
//credentials: 'include',
cache: 'no-store',
mode: 'cors',
redirect: 'follow',
}).then(response => {
if (!response.ok) throw new Error(response.status);
return response.json();
}).catch(error => {return error;})
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more