fix
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user