mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
806 B
806 B
Insomnia Default Headers
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"
}
}