use public CORS proxy for remote URL fetching

This commit is contained in:
Russell Ballestrini 2025-07-11 17:04:03 -04:00
parent aa1285ba6c
commit 695049ff90

View file

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