Change the default tokenHeader from access-token to Authorization. I believe the majority of use-cases will be using Authorization: Bearer {JWT}.
Remove the @Cache from the explorer controller. Is this really needed for dev?
Change the route path to something that doesn't start with /graphql. I have /graphql behind a firewall pattern, which then blocks the explorer too. I've since changed the path to /_graphiql to match other dev related tools (eg. _profiler)
Make the explorer a dedicated bundle that can added to the AppKernel based on environment (eg. DebugBundle and WebProfilerBundle).
Few suggestions I'd like to make:
Change the default
tokenHeader
fromaccess-token
toAuthorization
. I believe the majority of use-cases will be usingAuthorization: Bearer {JWT}
.Remove the
@Cache
from the explorer controller. Is this really needed for dev?Change the route path to something that doesn't start with
/graphql
. I have/graphql
behind a firewall pattern, which then blocks the explorer too. I've since changed the path to/_graphiql
to match other dev related tools (eg._profiler
)Make the explorer a dedicated bundle that can added to the
AppKernel
based on environment (eg.DebugBundle
andWebProfilerBundle
).