use uncloseai.com CORS proxy at /api/fetch/
This commit is contained in:
parent
695049ff90
commit
196527c674
1 changed files with 2 additions and 3 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue