Skip to content
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

GraphQL fetcher should honor headers from headers editor #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tdg5
Copy link

@tdg5 tdg5 commented May 16, 2023

This PR aims to fix #28.

Seems like this library uses an ancient GraphiQL setup. This PR updates some of that on the way to supporting making the headers editor work appropriately.

It tries to follow the "out of the box" implementation here https://github.com/graphql/graphiql/blob/main/examples/graphiql-cdn/index.html#L60, as referenced in this GraphiQL issue related to missing headers: graphql/graphiql#3005 (comment)

It seems like subscriptions are handled within GraphiQL these days, so the couple of subscription packages have been removed. They are also no longer supported and have been archived on github:

In my local testing this seems to work well, but it's worth noting that my test apps don't leverage subscriptions so there could be something askew in that regard. Any feedback is welcome.

@tdg5
Copy link
Author

tdg5 commented May 10, 2024

Whew, this just a week shy of a year old! We've been using this change in production for a year and haven't had any issues.

@tdg5
Copy link
Author

tdg5 commented May 10, 2024

@ciscorn , can you help me figure out if there's a path forward to getting this PR merged?

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.

Request Headers not added for GraphiQL interface.
1 participant