From 805b465ae69f67b8310ed0a11cb74e6b1d5a747f Mon Sep 17 00:00:00 2001 From: Suriya Date: Fri, 22 May 2026 11:18:59 +0530 Subject: [PATCH] hasurafix --- src/components/TopicView.jsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/components/TopicView.jsx b/src/components/TopicView.jsx index c991020..e3d95bd 100644 --- a/src/components/TopicView.jsx +++ b/src/components/TopicView.jsx @@ -7,14 +7,7 @@ import { LEGACY_BASE_URL, REST_BASE_URL } from '../data/topics' const ADMIN_SECRET = 'nearle-admin-secret' function toProxyPath(fullUrl) { - // Legacy (api.workolik.com): We still proxy this to inject the admin secret via server - if (fullUrl.startsWith(LEGACY_BASE_URL)) { - return fullUrl.slice(LEGACY_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. + // We can now fetch from the full URL directly since CORS is enabled on the backend! return fullUrl }