update CORS proxy URL to use query parameter format
This commit is contained in:
parent
196527c674
commit
2b69a4d17d
1 changed files with 2 additions and 2 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue