From b93b59aab53a2251619c0a463bfd021b0061e719 Mon Sep 17 00:00:00 2001 From: weightedangelcube Date: Sun, 2 Mar 2025 16:21:32 -0700 Subject: [PATCH] fix: proxy cors url for carbon usage --- src/scripts/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/index.ts b/src/scripts/index.ts index b8fad26..f22d6a8 100644 --- a/src/scripts/index.ts +++ b/src/scripts/index.ts @@ -1,7 +1,7 @@ async function fetchCarbon() : Promise { - const url : string = "https://api.websitecarbon.com/site?url=" + window.location.hostname; + const url : string = "https://corsproxy.io/?https://api.websitecarbon.com/site?url=" + window.location.hostname; const response : Response = await fetch(url, { method: "GET" }); -- 2.51.2