From 737048c0cbd0978c556416d3707f742c77a8f483 Mon Sep 17 00:00:00 2001 From: onezplpl Date: Thu, 25 Jul 2024 14:29:39 -0400 Subject: [PATCH] cors moment --- js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 10d73ea..7ed1446 100644 --- a/js/app.js +++ b/js/app.js @@ -24,7 +24,7 @@ async function genTree(treeId) { let doThings = false; async function main() { - let latestData = await fetch("https://api.scratch.mit.edu/studios/34493018/projects").then(x => x.json()); + let latestData = await fetch("https://corsproxy.io/?https://api.scratch.mit.edu/studios/34493018/projects").then(x => x.json()); await genTree(latestData[0].id); // latest project await genTree("654605857"); // tree bug here, unavoidable without jank doThings = true;