-
Notifications
You must be signed in to change notification settings - Fork 734
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
Adding default header option to GraphQLPlayground.init() #825
Conversation
I'm wondering if this has had any eyes on it or it's sitting in limbo. Happy to make any changes needed; just looking to use the functionality in one of my projects. |
It would be great if this could be merged, we want to pass a bearer token in as a header. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This the change needed to support adding headers from wrapping software , such as Bearer tokens, that will allow developers to use Playground without the need to fork the playground project
Any chance this get's merged - It's the only reason I can't use |
Also could really use this for a project I'm on. Unfortunately this repo doesn't seem to be very well maintained. Last commit 28 days ago, with 33 pull requests :/ |
Thanks for your first contribution! It will be in next release 🚀Sorry for taking too long. |
@HuVik Congrats on releasing |
@hampusohlsson New version is already there. |
Ahh I see! Awesome, thanks! |
* Passing headers through to playground from init * Adding test that header is added
Feature implementation for #636 .
Changes proposed in this pull request:
headers
option toGraphQLPlayground.init()
headers
property toGraphQLBinApp
and pass it through toPlaygroundWrapper
Playground
Adding a "test" header like this;
results in: