mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
25 lines
574 B
Markdown
25 lines
574 B
Markdown
|
# Insomnia Default Headers
|
||
|
|
||
|
[![Npm Version](https://img.shields.io/npm/v/insomnia-plugin-default-headers.svg)](https://www.npmjs.com/package/insomnia-plugin-default-headers)
|
||
|
|
||
|
This is a plugin for [Insomnia](https://insomnia.rest) 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.
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"DEFAULT_HEADERS": {
|
||
|
"Content-Type": "application/json",
|
||
|
"Connection": "close"
|
||
|
}
|
||
|
}
|
||
|
```
|
||
|
|