insomnia/plugins/insomnia-plugin-default-headers
2021-10-15 13:12:49 +13:00
..
src Allow removing header in default header plugin (#3791) 2021-08-25 07:08:29 +00:00
index.js Add Prettier 2018-06-25 13:42:50 -04:00
package-lock.json version packages lib@2.3.3-alpha.4 2021-10-15 13:12:49 +13:00
package.json version packages lib@2.3.3-alpha.4 2021-10-15 13:12:49 +13:00
README.md adds markdown linting (#3931) 2021-08-27 15:44:01 +12: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

```json
{
  "DEFAULT_HEADERS": {
    "Authorization": "null"
  }
}