Changed CORS anywhere address #40

This commit is contained in:
Przemek Wiech
2021-02-08 23:26:57 +01:00
parent eab1c707f3
commit e914511644
4 changed files with 5 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ export async function loadFromUrl(
} }
const urlToFetch = handleCors const urlToFetch = handleCors
? 'https://cors-anywhere.herokuapp.com/' + url ? 'https://topola-cors.herokuapp.com/' + url
: url; : url;
const response = await window.fetch(urlToFetch); const response = await window.fetch(urlToFetch);

View File

@@ -105,7 +105,7 @@ async function wikiTreeGet(request: WikiTreeRequest, handleCors: boolean) {
requestData.append(key, request[key]); requestData.append(key, request[key]);
} }
const apiUrl = handleCors const apiUrl = handleCors
? 'https://cors-anywhere.herokuapp.com/https://api.wikitree.com/api.php' ? 'https://topola-cors.herokuapp.com/https://api.wikitree.com/api.php'
: 'https://api.wikitree.com/api.php'; : 'https://api.wikitree.com/api.php';
const response = await window.fetch(apiUrl, { const response = await window.fetch(apiUrl, {
method: 'POST', method: 'POST',

View File

@@ -102,7 +102,7 @@ export function Intro() {
} }
values={{ values={{
link: ( link: (
<a href="https://cors-anywhere.herokuapp.com/">cors-anywhere</a> <a href="https://topola-cors.herokuapp.com/">cors-anywhere</a>
), ),
}} }}
/> />

View File

@@ -96,8 +96,8 @@ export class UrlMenu extends React.Component<
} }
values={{ values={{
link: ( link: (
<a href="https://cors-anywhere.herokuapp.com/"> <a href="https://topola-cors.herokuapp.com/">
cors-anywhere.herokuapp.com topola-cors.herokuapp.com
</a> </a>
), ),
}} }}