insomnia-plugin-headers

1.0.2 • Public • Published

Insomnia Plugin: Add Headers to Requests via Config

This is a small plugin for insomnia that allows you to add headers to all outbound requests without having to add them in the UI for every request.

Installation

With insomnia open, go to Preferences > Plugins. Add insomnia-plugin-headers to the package name field and click Install Plugin.

Configuration

To add your headers, open up the environment manager and create a headers object in the body with named object values:

{
    "headers": {
        "X-CUSTOM-HEADER": "your value",
        "X-ANOTHER-CUSTOM-HEADER": "another value"
    }
}

Now all requests will be sent from insomnia with X-CUSTOM-HEADER: your value and X-ANOTHER-CUSTOM-HEADER: another value as well as any specified in the request and the ones added by insomnia.

Package Sidebar

Install

npm i insomnia-plugin-headers

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

1.97 kB

Total Files

3

Last publish

Collaborators

  • andrew-waters