update CORS proxy URL to use query parameter format

This commit is contained in:
Russell Ballestrini 2025-07-11 17:46:23 -04:00
parent 196527c674
commit 2b69a4d17d

View file

@ -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',