chore: change cors url in the demo

This commit is contained in:
romanhotsiy 2021-07-01 12:31:20 +03:00
parent ece0f5a0cb
commit f944da0e7d
No known key found for this signature in database
GPG Key ID: 0BC2221278CCBBB8

View File

@ -77,7 +77,7 @@ class DemoApp extends React.Component<
let proxiedUrl = specUrl; let proxiedUrl = specUrl;
if (specUrl !== DEFAULT_SPEC) { if (specUrl !== DEFAULT_SPEC) {
proxiedUrl = cors proxiedUrl = cors
? '\\\\cors.apis.guru/' + urlResolve(window.location.href, specUrl) ? '\\\\cors.redoc.ly/' + urlResolve(window.location.href, specUrl)
: specUrl; : specUrl;
} }
return ( return (