insomnia/plugins/insomnia-plugin-default-headers
Jack Kavanagh 2bdd84ad22
make all packages private (#5339)
* make all packages private

* remove lerna json and publish scripts

* clean up npmignores

* remove major npm github ci logic
2022-10-27 17:55:30 +02:00
..
src
index.js
package.json make all packages private (#5339) 2022-10-27 17:55:30 +02:00
README.md Fix default headers plugin README (#4414) 2022-01-26 16:32:03 +00:00

Insomnia Default Headers

Npm Version

This is a plugin for Insomnia that allows users to set default headers for requests.

Installation

Install the insomnia-plugin-default-headers plugin from Preferences > Plugins.

Usage

Headers can be added by setting a DEFAULT_HEADERS environment variable.

{
  "DEFAULT_HEADERS": {
    "Content-Type": "application/json",
    "Connection": "close"
  }
}

Default header can be removed by setting value to null. For example, use folder environment variables to remove authorization header from anonymous calls

{
  "DEFAULT_HEADERS": {
    "Authorization": "null"
  }
}