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

[Feature Request] Global Headers #597

Closed
fjwillemsen opened this issue Nov 14, 2017 · 2 comments
Closed

[Feature Request] Global Headers #597

fjwillemsen opened this issue Nov 14, 2017 · 2 comments

Comments

@fjwillemsen
Copy link

Feature Request: Global Headers

As we have recently switched to Insomnia as our go-to REST client tool (especially for GraphQL) in our Dev environment, we’ve seen a lot of great features in the app. This near-perfection of the tool has also outlined a feature that is, in our opinion, missing: Global Headers. If users can set the headers the way variables can be set, the app will be more dynamic. We have a couple dozen queries we test, and need to apply some header-tokens to all of them to make sure they pass verification. In the current situation, our queries have headers with variable values, with the values entered on sub-domain level. However, if for example headers are changed or added in the future, we’d have to make the same change to every query.
Another example; when a user is logged in, all the following calls will need an Authorization header consisting of a JWT token. With which the back-end determines if and what user is logged in. Without global headers, we need to update our headers in every query we test with the freshly created JWT token. If we could add this as a Global Header, calls would work immediately with the correct headers set globally.
We believe these examples highlight several use cases that would significantly benefit from the addition of the requested feature.

@gschier
Copy link
Contributor

gschier commented Nov 14, 2017

Thanks for the request @fjwillemsen!

This has been discussed a lot in the past and is currently planned to be solved Parent Requests

However, if you can't wait, there is also a plugin that allows you to set default headers using an environment variable: https://www.npmjs.com/package/insomna-plugin-default-headers

Going to close this issue for now in favor of the things mentioned.

@gschier gschier closed this as completed Nov 14, 2017
@m3c-ode
Copy link

m3c-ode commented May 18, 2022

I've tried installing the plug-in but nothing changed. how can it be used?

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

No branches or pull requests

3 participants