Published
Edited
Feb 27, 2020
Insert cell
Insert cell
Insert cell
// https://en.wikipedia.org/wiki/HTTP_referer
referer = window.location.protocol + '//' + window.location.host;
Insert cell
origin = window.location.protocol + '//' + window.location.host;
Insert cell
Insert cell
fetch(proxy + url, {
headers: {
'Content-Type': 'application/json',
// Referer: referer ,
Origin: origin
},
//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

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