proxypass

This commit is contained in:
2026-05-21 12:18:31 +05:30
parent 9e8ae45bb3
commit 95cc80b4a8
2 changed files with 5 additions and 5 deletions

2
.gitignore vendored
View File

@@ -1,4 +1,4 @@
# Dependencies
1# Dependencies
node_modules/
# Build output

View File

@@ -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
}