proxypass
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
|||||||
# Dependencies
|
1# Dependencies
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|
||||||
# Build output
|
# Build output
|
||||||
|
|||||||
@@ -11,10 +11,10 @@ function toProxyPath(fullUrl) {
|
|||||||
if (fullUrl.startsWith(LEGACY_BASE_URL)) {
|
if (fullUrl.startsWith(LEGACY_BASE_URL)) {
|
||||||
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
|
|
||||||
if (fullUrl.startsWith(REST_BASE_URL)) {
|
// REST API (jupiter.nearle.app): We used to proxy this to avoid CORS issues,
|
||||||
return fullUrl.slice(REST_BASE_URL.length)
|
// but we fixed CORS on the Kubernetes backend yesterday (jupiter-cors-proxy)!
|
||||||
}
|
// So we can now fetch from the full URL directly.
|
||||||
return fullUrl
|
return fullUrl
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user