-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently can't set headers to persist in graphiql #1776
Labels
Comments
alexdibattista
changed the title
graphiql is not persisting headers
Currently can't set headers to peresist in graphiql
Jan 17, 2022
StevenACoffman
added
help wanted
Extra attention is needed
good first issue
Good for newcomers
labels
Jan 25, 2022
So this is set in https://github.com/99designs/gqlgen/blob/master/graphql/playground/playground.go#L46 And I think it is something like this:
|
StevenACoffman
changed the title
Currently can't set headers to peresist in graphiql
Currently can't set headers to persist in graphiql
Jan 26, 2022
StevenACoffman
added a commit
that referenced
this issue
Jan 26, 2022
@alexdibattista Can you test if the PR #1856 works for you? |
@StevenACoffman Sorry, I missed your reply. I tested against master and it works. Thanks for the quick turnaround. |
This was referenced Mar 2, 2022
Open
This was referenced Mar 26, 2022
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
After adding a header to Graphiql and refreshing the page the header is removed from request headers section. Since we are using a auth header we can't load the documentation explorer which is helpful for local development.
What did you expect?
The header to persist when refreshing the page.
Minimal graphql.schema and models to reproduce
versions
gqlgen version 0.15.1
go version 1.17.5
It would be nice to have a way to set the prop shouldPersistHeaders with graphiql for development purposes.
The text was updated successfully, but these errors were encountered: