Files
insomnia/plugins/insomnia-plugin-default-headers
Filipe Freire 205d0b0d2d v3.7.0-alpha.0
2022-12-12 17:56:14 +00:00
..
2018-06-25 13:42:50 -04:00
2022-12-12 17:56:14 +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"
  }
}