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

to support adding headers when sending the introspection query #398

Closed
Albert-Gao opened this issue Sep 24, 2022 · 2 comments
Closed

to support adding headers when sending the introspection query #398

Albert-Gao opened this issue Sep 24, 2022 · 2 comments
Labels
Feature New feature or request

Comments

@Albert-Gao
Copy link

Albert-Gao commented Sep 24, 2022

Hi

the introspection query to the server is failing, because the whole endpoint is protected, is there anyway we can add the support of adding headers when sending the introspection query? thanks :)

or if we can support local schema #397 , that this feature would not be needed :)

@andyrichardson
Copy link
Collaborator

Hey @Albert-Gao, thanks for opening this.

Having the ability to pass the schema to the exchange (like with the cache exchange) sounds like a useful feature 👍

RE adding headers, you could add an exchange just before the fetch exchange which adds headers to the fetchOptions object. This would ensure introspection requests triggered by any exchange would have the headers included

@andyrichardson
Copy link
Collaborator

I'm going to close this because an intercepting exchange could do the job (drop a comment if you need help with this).

Will keep #397 around - open to contributions 👍

@Albert-Gao Albert-Gao closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants