mirror of
https://github.com/PeWu/topola-viewer.git
synced 2025-12-24 03:00:05 +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
|
||||
? 'https://topola-cors-server.up.railway.app/' + url
|
||||
? 'https://topolaproxy.bieda.it/' + url
|
||||
: url;
|
||||
|
||||
const response = await window.fetch(urlToFetch);
|
||||
|
||||
@ -53,7 +53,7 @@ function getApiOptions(handleCors: boolean) {
|
||||
handleCors
|
||||
? {
|
||||
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).'
|
||||
}
|
||||
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={{
|
||||
link: (
|
||||
<a href="https://topola-cors-server.up.railway.app/">
|
||||
topola-cors-server.up.railway.app
|
||||
<a href="https://topolaproxy.bieda.it/">
|
||||
topolaproxy.bieda.it (cors-anywhere proxy)
|
||||
</a>
|
||||
),
|
||||
}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user