From 95cc80b4a8d3f47f2791721f8a3b8dd4851486b7 Mon Sep 17 00:00:00 2001 From: Suriya Date: Thu, 21 May 2026 12:18:31 +0530 Subject: [PATCH] proxypass --- .gitignore | 2 +- src/components/TopicView.jsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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 }