From 2b69a4d17d1fa4e333c1e556e16ae7d9988aec8f Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Fri, 11 Jul 2025 17:46:23 -0400 Subject: [PATCH] update CORS proxy URL to use query parameter format --- src/translate-modal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/translate-modal.js b/src/translate-modal.js index 4df23f7..584557a 100644 --- a/src/translate-modal.js +++ b/src/translate-modal.js @@ -15,8 +15,8 @@ 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)}`; + // Use our CORS proxy at uncloseai.com with query parameter + const proxyUrl = `https://uncloseai.com/api/fetch?uri_target=${encodeURIComponent(url)}`; const response = await fetch(proxyUrl, { method: 'GET',