mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-02-18 02:55:48 +00:00
Updated hosting of cors-anywhere proxy #130
This commit is contained in:
parent
18a4313460
commit
82508dfa34
@ -64,7 +64,7 @@ export async function loadFromUrl(
|
|||||||
}
|
}
|
||||||
|
|
||||||
const urlToFetch = handleCors
|
const urlToFetch = handleCors
|
||||||
? 'https://topola-cors-server.up.railway.app/' + url
|
? 'https://topolaproxy.bieda.it/' + url
|
||||||
: url;
|
: url;
|
||||||
|
|
||||||
const response = await window.fetch(urlToFetch);
|
const response = await window.fetch(urlToFetch);
|
||||||
|
|||||||
@ -53,7 +53,7 @@ function getApiOptions(handleCors: boolean) {
|
|||||||
handleCors
|
handleCors
|
||||||
? {
|
? {
|
||||||
apiUrl:
|
apiUrl:
|
||||||
'https://topola-cors-server.up.railway.app/https://api.wikitree.com/api.php',
|
'https://topolaproxy.bieda.it/https://api.wikitree.com/api.php',
|
||||||
}
|
}
|
||||||
: {},
|
: {},
|
||||||
);
|
);
|
||||||
|
|||||||
@ -94,7 +94,7 @@ function Contents() {
|
|||||||
' cross-site file loading in the browser (CORS).'
|
' cross-site file loading in the browser (CORS).'
|
||||||
}
|
}
|
||||||
values={{
|
values={{
|
||||||
link: <a href="https://topola-cors-server.up.railway.app/">cors-anywhere</a>,
|
link: <a href="https://topolaproxy.bieda.it/">cors-anywhere</a>,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@ -67,8 +67,8 @@ export function UrlMenu(props: Props) {
|
|||||||
}
|
}
|
||||||
values={{
|
values={{
|
||||||
link: (
|
link: (
|
||||||
<a href="https://topola-cors-server.up.railway.app/">
|
<a href="https://topolaproxy.bieda.it/">
|
||||||
topola-cors-server.up.railway.app
|
topolaproxy.bieda.it (cors-anywhere proxy)
|
||||||
</a>
|
</a>
|
||||||
),
|
),
|
||||||
}}
|
}}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user