This commit is contained in:
2026-05-21 13:03:39 +05:30
parent d2c6948626
commit bb82ed55c8

View File

@@ -12,6 +12,7 @@ function toProxyPath(fullUrl) {
return fullUrl.slice(LEGACY_BASE_URL.length) return fullUrl.slice(LEGACY_BASE_URL.length)
} }
// REST API (jupiter.nearle.app): Proxy requests through local server to avoid CORS issues // REST API (jupiter.nearle.app): Proxy requests through local server to avoid CORS issues
// and support proxying to your local Go backend (http://localhost:1009).
if (fullUrl.startsWith(REST_BASE_URL)) { if (fullUrl.startsWith(REST_BASE_URL)) {
return fullUrl.slice(REST_BASE_URL.length) return fullUrl.slice(REST_BASE_URL.length)
} }