Graphene-django: Add custom header support to GraphiQL

Created on 10 Jan 2020  路  3Comments  路  Source: graphql-python/graphene-django

Related issue: https://github.com/graphql/graphiql/issues/500

GraphiQL by default does not implement a way to pass custom request headers, which are still fairly commonly used for example by authentication middleware. It would be nice if graphene-django's built-in GraphiQL view had support for doing authenticated requests with custom HTTP headers.

help wanted 鉁╡nhancement

Most helpful comment

@MythicManiac @jkimbo Hey, I've prepared PR #1016 that adds support for headers introduced to
graphiql https://github.com/graphql/graphiql/pull/1543

All 3 comments

Yes, without being able to customize the headers, it's not possible to test JWT authentication

This seems like a good enhancement. If anyone wants to contribute a PR for this that would be very helpful.

@MythicManiac @jkimbo Hey, I've prepared PR #1016 that adds support for headers introduced to
graphiql https://github.com/graphql/graphiql/pull/1543

Was this page helpful?
0 / 5 - 0 ratings