From 584945b14d6c16e93a029395b8e99dd29a60be99 Mon Sep 17 00:00:00 2001 From: ayame113 <40050810+ayame113@users.noreply.github.com> Date: Thu, 29 Dec 2022 23:43:52 +0900 Subject: [PATCH] fix(demo): Get CORS proxy to work in Chrome on Windows (#2220) --- demo/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/index.tsx b/demo/index.tsx index 2ec92ce2..952be9ff 100644 --- a/demo/index.tsx +++ b/demo/index.tsx @@ -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 (