altair: Application is not sending headers
Expected Behavior
When headers are set they should be sent with every request.
Current Behavior
Headers are not sent
Steps to Reproduce (for bugs)
- set any headers (I’ve tried
Authorization
and custom headers) - open network tab in dev tools
- press Reload Docs
- check that request is missing headers
- make any graphql query
- press Send Request
- check that request is missing headers
Context
My GraphQL API is behind OAuth, sending any request without Authorization
header will fail.
Your Environment
- Version used: 1.4.7
- Environment name and version (e.g. Chrome 39, node.js 5.4): electron
- Operating System and version (desktop or mobile): Desktop OSX 10.11.6
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 23 (4 by maintainers)
@imolorhe Got it! How can I miss that part. 👍 It works fantastically!! Any specific reason you did not implement it in chrome extension? seems that according to this chrome doc, extension can also modify headers. Thanks!
Chrome sends a preflight request with the OPTIONS method. I think you shouldn’t have an issue if you’re handling that method. I’ll still look into this though. From the docs, it seems like it’s the way it’s meant to behave. That it should always send a preflight request for requests that are not “simple”.