mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 08:36:33 +03:00
fix(demo): Get CORS proxy to work in Chrome on Windows (#2220)
This commit is contained in:
parent
12be1bc5ff
commit
1597bae403
|
@ -86,7 +86,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.redoc.ly/' + new URL(specUrl, window.location.href).href
|
? 'https://cors.redoc.ly/' + new URL(specUrl, window.location.href).href
|
||||||
: specUrl;
|
: specUrl;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user