diff --git a/.gitignore b/.gitignore index a777b0b..9f705f2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -# Dependencies +1# Dependencies node_modules/ # Build output diff --git a/src/components/TopicView.jsx b/src/components/TopicView.jsx index c31883d..c991020 100644 --- a/src/components/TopicView.jsx +++ b/src/components/TopicView.jsx @@ -11,10 +11,10 @@ function toProxyPath(fullUrl) { if (fullUrl.startsWith(LEGACY_BASE_URL)) { return fullUrl.slice(LEGACY_BASE_URL.length) } - // REST API (jupiter.nearle.app): Proxy requests through local server to avoid CORS issues - if (fullUrl.startsWith(REST_BASE_URL)) { - return fullUrl.slice(REST_BASE_URL.length) - } + + // REST API (jupiter.nearle.app): We used to proxy this to avoid CORS issues, + // but we fixed CORS on the Kubernetes backend yesterday (jupiter-cors-proxy)! + // So we can now fetch from the full URL directly. return fullUrl }