From 196527c674aa28c61e3c12f672f520986051aba1 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Fri, 11 Jul 2025 17:05:44 -0400 Subject: [PATCH] use uncloseai.com CORS proxy at /api/fetch/ --- src/translate-modal.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/translate-modal.js b/src/translate-modal.js index 327aba2..4df23f7 100644 --- a/src/translate-modal.js +++ b/src/translate-modal.js @@ -15,9 +15,8 @@ async function fetchRemotePageContent(url) { throw new Error(`Invalid URL format: ${url}`); } - // For now, use a public CORS proxy until we set up our own - // Options: https://corsproxy.io/?url= or https://api.allorigins.win/raw?url= - const proxyUrl = `https://api.allorigins.win/raw?url=${encodeURIComponent(url)}`; + // Use our CORS proxy at uncloseai.com + const proxyUrl = `https://uncloseai.com/api/fetch/${encodeURIComponent(url)}`; const response = await fetch(proxyUrl, { method: 'GET',