Skip to content

Commit

Permalink
fix(demo): Get CORS proxy to work in Chrome on Windows (#2220)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayame113 committed Dec 29, 2022
1 parent 12be1bc commit 1597bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/index.tsx
Expand Up @@ -86,7 +86,7 @@ class DemoApp extends React.Component<
let proxiedUrl = specUrl;
if (specUrl !== DEFAULT_SPEC) {
proxiedUrl = cors
? '\\\\cors.redoc.ly/' + new URL(specUrl, window.location.href).href
? 'https://cors.redoc.ly/' + new URL(specUrl, window.location.href).href
: specUrl;
}
return (
Expand Down

0 comments on commit 1597bae

Please sign in to comment.