From 695049ff9088d019cf762acea8a6ff6fdfe6202e Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Fri, 11 Jul 2025 17:04:03 -0400 Subject: [PATCH] use public CORS proxy for remote URL fetching --- src/translate-modal.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/translate-modal.js b/src/translate-modal.js index 4df23f7..327aba2 100644 --- a/src/translate-modal.js +++ b/src/translate-modal.js @@ -15,8 +15,9 @@ async function fetchRemotePageContent(url) { throw new Error(`Invalid URL format: ${url}`); } - // Use our CORS proxy at uncloseai.com - const proxyUrl = `https://uncloseai.com/api/fetch/${encodeURIComponent(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)}`; const response = await fetch(proxyUrl, { method: 'GET',