Skip to content

Add transparent proxy endpoint for RDI native API - #6468

Open
ArtemHoruzhenko wants to merge 3 commits into
mainfrom
feature/rdi-ui/proxy-endpoint
Open

Add transparent proxy endpoint for RDI native API#6468
ArtemHoruzhenko wants to merge 3 commits into
mainfrom
feature/rdi-ui/proxy-endpoint

Conversation

@ArtemHoruzhenko

@ArtemHoruzhenko ArtemHoruzhenko commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

What

Fourth PR in the rdi-ui integration chain (stacked on #6467, which is stacked on #6465/#6464).

Adds rdi/:id/proxy/*, a transparent passthrough to an RDI instance's native API. The upcoming @rdi-ui/pipeline package ships its own SDK (@rdi-ui/sdk) that speaks the native RDI API directly rather than RedisInsight's curated /rdi/:id/pipeline endpoints. This proxy gives it something real to call while keeping credentials and TLS handling entirely server-side.

Key points:

  • Why a proxy at all, not a direct browser→RDI call: RDI instances generally won't set CORS headers allowing RedisInsight's web origin, and RedisInsight would otherwise have to hand the browser either raw stored credentials or a JWT it obtained itself. Confirmed this is also how cloud-ui's own production integration of the same SDK works — it always proxies server-side rather than using the SDK's own login flow or a direct RDI URL.
  • Why RdiClient needs a new method (proxyRequest, declared on the abstract RdiClient, implemented once on ApiRdiClient, inherited by ApiV2RdiClient): the authenticated connection (bearer token, self-signed-cert TLS bypass) only exists inside that class; RdiClientProvider.getOrCreate() returns the abstract RdiClient type, so every other RDI capability is already exposed this same way. Reusing it avoids re-implementing login/token-refresh in the proxy layer.
  • Header stripping (both directions) prevents real bugs, not just tidiness: forwarding the caller's authorization/cookie would override the RDI client's own bearer token or leak RedisInsight's session; forwarding original content-length/content-encoding on the response would corrupt it in the browser once axios has already decompressed the body. Hop-by-hop headers (connection, te, trailer, etc.) are never proxy-safe per RFC 7230.
  • No frontend or npm dependency changes in this PR — that's next.

Testing

  • npm run lint:api and npm run type-check --prefix redisinsight/api (0 new errors) pass.
  • New specs for RdiProxyService, RdiProxyController, and ApiRdiClient.proxyRequest (incl. non-2xx passthrough).
  • Full rdi module test suite (293 tests) still passes.

No ticket yet.


Note

High Risk
Introduces a generic HTTP proxy that forwards authenticated server requests to user-configured RDI hosts; mitigations exist but SSRF, header smuggling, and open-redirect edge cases remain security-sensitive.

Overview
Adds rdi/:id/proxy/*, a server-side passthrough so the upcoming @rdi-ui/pipeline SDK can call an RDI instance’s native API through RedisInsight (credentials/TLS stay on the server; browser avoids CORS).

RdiProxyController maps the raw URL suffix after /proxy (keeping percent-encoding), allows only GET/POST/PUT/PATCH/DELETE, and streams status/headers/body back. RdiProxyService strips unsafe hop-by-hop, auth, cookie, and CORS headers on the way in/out, and forces Content-Security-Policy: sandbox and X-Content-Type-Options: nosniff on responses.

ApiRdiClient.proxyRequest (new abstract on RdiClient) forwards via the existing authenticated axios client with validateStatus: null (non-2xx pass through), allowAbsoluteUrls: false, maxRedirects: 0, and arraybuffer bodies. It blocks path traversal outside the configured RDI base URL (including encoded ..) and strips Location on 3xx when it would leave the RDI origin/subpath.

New RdiProxyRequest/RdiProxyResponse types and unit tests for controller, service, and client; RdiModule registers the new controller/service.

Reviewed by Cursor Bugbot for commit 65753f2. Bugbot is set up for automated code reviews on this repo. Configure here.

@ArtemHoruzhenko
ArtemHoruzhenko force-pushed the feature/rdi-ui/proxy-endpoint branch from 26b2880 to fae4cd3 Compare September 1, 2026 09:46
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Code Coverage - Backend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 93.29% 16876/18090
🟡 Branches 75.7% 5432/7176
🟢 Functions 87.75% 2594/2956
🟢 Lines 93.15% 16141/17328

Test suite run success

3851 tests passing in 330 suites.

Report generated by 🧪jest coverage report action from 65753f2

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Code Coverage - Integration Tests

Status Category Percentage Covered / Total
🟡 Statements 79.56% 18567/23335
🟡 Branches 62.04% 8693/14010
🟡 Functions 67.3% 2516/3738
🟡 Lines 79.16% 17484/22086

@ArtemHoruzhenko
ArtemHoruzhenko force-pushed the feature/rdi-ui/proxy-endpoint branch from fae4cd3 to 4657769 Compare September 1, 2026 10:13
@ArtemHoruzhenko
ArtemHoruzhenko marked this pull request as ready for review September 8, 2026 16:27
@ArtemHoruzhenko
ArtemHoruzhenko requested a review from a team as a code owner September 8, 2026 16:27

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 465776968b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread redisinsight/api/src/modules/rdi/client/api/v1/api.rdi.client.ts Outdated
@ArtemHoruzhenko
ArtemHoruzhenko force-pushed the feature/rdi-ui/proxy-endpoint branch from 4657769 to 7bd0022 Compare September 8, 2026 16:58

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7bd0022392

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread redisinsight/api/src/modules/rdi/rdi-proxy.service.ts
Comment thread redisinsight/api/src/modules/rdi/rdi-proxy.controller.ts

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread redisinsight/api/src/modules/rdi/client/api/v1/api.rdi.client.ts
@ArtemHoruzhenko
ArtemHoruzhenko force-pushed the feature/rdi-ui/proxy-endpoint branch from 7bd0022 to 1b9497b Compare September 8, 2026 17:26

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1b9497b61b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread redisinsight/api/src/modules/rdi/rdi-proxy.controller.ts
Comment thread redisinsight/api/src/modules/rdi/rdi-proxy.controller.ts Outdated
@ArtemHoruzhenko
ArtemHoruzhenko force-pushed the feature/rdi-ui/proxy-endpoint branch from 1b9497b to c5f6525 Compare September 8, 2026 17:45

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c5f65250d3

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread redisinsight/api/src/modules/rdi/client/api/v1/api.rdi.client.ts

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 21d95de22c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread redisinsight/api/src/modules/rdi/rdi-proxy.controller.ts Outdated
Comment thread redisinsight/api/src/modules/rdi/rdi-proxy.service.ts

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread redisinsight/api/src/modules/rdi/rdi-proxy.service.ts

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dbc7444db8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread redisinsight/api/src/modules/rdi/rdi-proxy.controller.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: da9c332a52

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread redisinsight/api/src/modules/rdi/client/api/v1/api.rdi.client.ts Outdated
Comment thread redisinsight/api/src/modules/rdi/rdi-proxy.service.ts

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread redisinsight/api/src/modules/rdi/client/api/v1/api.rdi.client.ts Outdated
Comment thread redisinsight/api/src/modules/rdi/client/api/v1/api.rdi.client.ts Outdated
Comment thread redisinsight/api/src/modules/rdi/rdi-proxy.controller.ts Fixed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 58ae63d5db

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread redisinsight/api/src/modules/rdi/client/api/v1/api.rdi.client.ts Outdated
Comment thread redisinsight/api/src/modules/rdi/rdi-proxy.controller.ts Outdated
Comment thread redisinsight/api/src/modules/rdi/client/api/v1/api.rdi.client.ts Outdated
Comment thread redisinsight/api/src/modules/rdi/client/api/v1/api.rdi.client.ts Outdated
@ArtemHoruzhenko
ArtemHoruzhenko force-pushed the feature/rdi-ui/proxy-endpoint branch from 58ae63d to 41f2a1b Compare September 9, 2026 06:02

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 41f2a1bc8f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread redisinsight/api/src/modules/rdi/client/api/v1/api.rdi.client.ts Outdated
Comment thread redisinsight/api/src/modules/rdi/client/api/v1/api.rdi.client.ts
Comment thread redisinsight/api/src/modules/rdi/rdi-proxy.controller.ts Outdated

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread redisinsight/api/src/modules/rdi/rdi-proxy.service.ts
@ArtemHoruzhenko
ArtemHoruzhenko force-pushed the feature/rdi-ui/proxy-endpoint branch from 41f2a1b to 3ef1d83 Compare September 9, 2026 10:01

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3ef1d83654

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread redisinsight/api/src/modules/rdi/client/api/v1/api.rdi.client.ts Outdated
Comment thread redisinsight/api/src/modules/rdi/rdi-proxy.service.ts

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread redisinsight/api/src/modules/rdi/client/api/v1/api.rdi.client.ts
@ArtemHoruzhenko
ArtemHoruzhenko force-pushed the feature/rdi-ui/proxy-endpoint branch from 3ef1d83 to 25b3b2a Compare September 9, 2026 11:40

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 25b3b2a9cc

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread redisinsight/api/src/modules/rdi/rdi-proxy.controller.ts

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread redisinsight/api/src/modules/rdi/rdi-proxy.service.ts
@ArtemHoruzhenko
ArtemHoruzhenko force-pushed the feature/rdi-ui/proxy-endpoint branch from 25b3b2a to c0ff70a Compare September 9, 2026 12:30

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c0ff70a2db

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread redisinsight/api/src/modules/rdi/rdi-proxy.controller.ts

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread redisinsight/api/src/modules/rdi/client/api/v1/api.rdi.client.ts
Base automatically changed from feature/rdi-ui/pipeline-draft-crud to main September 10, 2026 10:43
Adds an HTTP passthrough (rdi/:id/proxy/*) so the @rdi-ui/pipeline
SDK's bundled client can talk to the RDI instance's native API without
exposing credentials to the browser or hitting CORS, reusing the same
authenticated RdiClient connection every other RDI endpoint already
uses. Hop-by-hop, auth, and transport headers (including RDI's own
CORS headers and Clear-Site-Data, either of which could interfere with
RedisInsight's own origin) are stripped in both directions; the
upstream response is forwarded as raw bytes rather than letting axios
parse/re-serialize it, which corrupted non-JSON, binary, or
already-encoded responses.

Closes an SSRF vector where an absolute/scheme-relative path could
override the RDI base URL and send the Authorization header to an
arbitrary host, and returns 3xx responses to the caller as-is instead
of following them server-side, which could otherwise point this
backend (not just the browser) at an arbitrary host via a redirect
Location. RDI hosted under a subpath (e.g. https://host/rdi) is
supported, but a request path is rejected if it would normalize past
that subpath.

RdiClient gains an abstract proxyRequest() method, implemented once on
ApiRdiClient (ApiV2RdiClient inherits it).
@ArtemHoruzhenko
ArtemHoruzhenko force-pushed the feature/rdi-ui/proxy-endpoint branch from c0ff70a to 9c14acf Compare September 10, 2026 11:02

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9c14acfa92

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread redisinsight/api/src/modules/rdi/rdi-proxy.controller.ts
…, and encoded traversal

Three gaps in the RDI proxy endpoint:
- assertPathWithinRdiBase only collapsed literal ".." segments, so an
  encoded traversal (..%2f, %2e%2e%2f) passed the guard here but could
  still be decoded and collapsed by RDI itself server-side.
- A 3xx response's Location header was forwarded unfiltered, letting a
  compromised RDI redirect the browser cross-origin while it still
  carries RedisInsight-only headers.
- Proxied responses kept whatever content-type RDI sent, so a
  compromised RDI returning text/html would execute under the
  RedisInsight origin if the proxy URL were opened as a document.

Decode paths and redirect Locations before validating them, strip
Location headers that resolve outside the configured RDI origin/
subpath, and force Content-Security-Policy: sandbox + nosniff on
every proxied response.
The proxy's @ALL('*path') forwarded any method verbatim, including
TRACE - which, if the upstream RDI server implements it, echoes the
request (with the RDI client's bearer token, attached as an axios
default header) back in the response body, leaking the server-side
credential to the caller.

Restrict the proxy to the methods the pipeline SDK actually needs.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 65753f26d8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +394 to +398
if (
locationKey &&
!this.isLocationWithinRdiBase(responseHeaders[locationKey])
) {
delete responseHeaders[locationKey];

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Rewrite allowed redirects back through the proxy

When RDI returns a same-origin redirect, this retains its Location unchanged even though the browser is communicating with the RedisInsight origin. A root-relative value such as /rdi/api/v1/pipelines/new is therefore requested from RedisInsight without the configured API prefix or :id/proxy route, while an absolute RDI URL is followed directly without the proxy-injected bearer token and may fail CORS. Fresh evidence in this revision is that maxRedirects is again set to 0 and locations within the RDI base are explicitly retained; rewrite those locations to the externally reachable proxy URL or follow only validated redirects server-side.

Useful? React with 👍 / 👎.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 65753f2. Configure here.

) {
delete responseHeaders[locationKey];
}
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redirect Location hits RedisInsight origin

High Severity

isLocationWithinRdiBase keeps a 3xx Location when it resolves against rdi.url, then the proxy relays that header unchanged. The browser resolves it against RedisInsight’s origin instead, so a relative in-scope Location becomes a same-origin hop onto RedisInsight routes. A 307/308 can replay the original method, body, and session headers onto /api/*. Absolute RDI Locations also leave the proxy, so the SDK hits RDI directly without the server-side bearer token and without RedisInsight CORS.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 65753f2. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants