Skip to content

[4.5.x] Fix #1106 - Self-host/vendor GraphiQL explorer (older version) (backport #1108) - #1116

Merged
mxsasha merged 1 commit into
stable/4.5.xfrom
mergify/bp/stable/4.5.x/pr-1108
Aug 7, 2026
Merged

[4.5.x] Fix #1106 - Self-host/vendor GraphiQL explorer (older version) (backport #1108)#1116
mxsasha merged 1 commit into
stable/4.5.xfrom
mergify/bp/stable/4.5.x/pr-1108

Conversation

@mergify

@mergify mergify Bot commented Aug 7, 2026

Copy link
Copy Markdown

Serve GraphiQL from a same-origin vendored bundle instead of a CDN, so the
explorer works under a strict CSP with no third-party origins.

  • Vendor graphiql under irrd/webui/static/js/graphiql/
  • graphiql.html loads only /static assets with no inline <script>/<style>,
    so the CSP can remain strict and simple
  • This binds us to an older graphiql 3.x, as it uses the simpler UMD build,
    we can upgrade to later versions at the cost of a more complex vendoring

This is an automatic backport of pull request #1108 done by [Mergify](https://mergify.com).

Serve GraphiQL from a same-origin vendored bundle instead of a CDN, so the
explorer works under a strict CSP with no third-party origins.

- Vendor graphiql under irrd/webui/static/js/graphiql/
- graphiql.html loads only /static assets with no inline <script>/<style>,
  so the CSP can remain strict and simple
- This binds us to an older graphiql 3.x, as it uses the simpler UMD build,
  we can upgrade to later versions at the cost of a more complex vendoring

(cherry picked from commit e375496)
@mergify

mergify Bot commented Aug 7, 2026

Copy link
Copy Markdown
Author

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@mxsasha
mxsasha merged commit 984c4e2 into stable/4.5.x Aug 7, 2026
10 checks passed
@mxsasha
mxsasha deleted the mergify/bp/stable/4.5.x/pr-1108 branch August 7, 2026 11:03
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