insomnia/plugins/insomnia-plugin-default-headers
insomnia-infra 6aa7cf1697
🚀 2023.4.0 (#6086)
* v3.18.0

* Bump app version to 2023.4.0 and lerna package versions

---------

Co-authored-by: Jack Kavanagh <3679927+jackkav@users.noreply.github.com>
2023-07-04 21:50:03 +02: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.json 🚀 2023.4.0 (#6086) 2023-07-04 21:50:03 +02:00
README.md Tidy Plugins' README files (#5513) 2022-12-14 08:52:08 +00:00

Insomnia Default Headers

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

Installation

insomnia-plugin-default-headers is pre-installed into Insomnia since version 2022.7.0 onwards.

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"
  }
}