use uncloseai.com CORS proxy at /api/fetch/

This commit is contained in:
Russell Ballestrini 2025-07-11 17:05:44 -04:00
parent 695049ff90
commit 196527c674

View file

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