use corsproxy

This commit is contained in:
zeno 2024-03-24 18:58:47 -04:00
parent e80470ce3f
commit 984b31014a

View file

@ -5,7 +5,7 @@ let users = {};
let fetchData;
async function genTree(treeId) {
fetchData = fetchData || await fetch(`https://scratch.mit.edu/projects/${treeId}/remixtree/bare/`)
fetchData = fetchData || await fetch(`https://corsproxy.io/?https://scratch.mit.edu/projects/${treeId}/remixtree/bare/`)
.then(x => x.json());
entries.push(treeId)