Skip to content

Add a guide for embedding Graph Explorer in a web app - #2669

Open
MaxonT wants to merge 1 commit into
aws:mainfrom
MaxonT:contrib/1461-auto
Open

MaxonT wants to merge 1 commit into
aws:mainfrom
MaxonT:contrib/1461-auto

Conversation

@MaxonT

@MaxonT MaxonT commented Nov 27, 2026

Copy link
Copy Markdown

Hi there, here is a proposed fix for this issue.

Description

Adds guides/embed-in-a-web-app.mdx to the docs site and a card for it in the Guides index. The guide walks through serving Graph Explorer under a path prefix of your own web app (for example /graph/) through a reverse proxy, linking to it with a connection link, and showing it in an <iframe>.

It mostly puts together what the docs already say in separate places (Serving HTTP Behind a Reverse Proxy, Reference for access control layers, Reverse proxy misconfigured, Connection Links) into one start-to-finish page: run the server over HTTP on loopback, an nginx rule that strips the prefix and forwards the rest unchanged, timeout and body size settings that match the documented 240000 ms fetch timeout and 50 MB body limit, and a short check list. The one new statement is that the server itself sends no X-Frame-Options or Content-Security-Policy header, so whether an iframe loads depends on what the reverse proxy or web framework adds.

Validation

  • vp check passes (format, lint, types), and vp run docs:build builds 27 pages and its link check reports all internal links resolve and every alert converts.
  • I built the Docker image from this branch's Dockerfile and ran it with PROXY_SERVER_HTTPS_CONNECTION=false and PROXY_SERVER_PORT=9250 behind nginx:alpine using the exact location /graph/ rule from the guide. Through nginx, /graph/explorer/ returned 200, /graph/explorer returned a 301 to the relative explorer/, /graph/status returned 200, and POST /graph/gremlin reached the server (400 for the missing graph-db-connection-url header). The response headers had no X-Frame-Options or Content-Security-Policy.
  • Not run: loading the page in a real browser or inside an iframe, a query against a real database, and any authentication layer. The browser-storage sentence (storage belongs to the origin that serves the page) is standard browser behavior that I did not test here. The guide has no screenshots, which the issue's task list mentions.

Related Issues

Addresses #1461

Check List

  • I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • I have verified pnpm checks passes with no errors. (ran vp check, which AGENTS.md names as the check command)
  • I have verified pnpm test passes with no failures. (docs-only change, unit tests not run)
  • I have covered new added functionality with unit tests if necessary. (docs only)
  • I have updated documentation if necessary.

Signed-off-by: Ym <173550318+MaxonT@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

1 participant