message-headers
Version:
Automatically updated list of RFC HTTP permanent and provisional headers from IANA (<https://www.iana.org/assignments/message-headers/message-headers.xhtml>)
69 lines (43 loc) • 2.04 kB
Markdown
# message-headers
[](https://travis-ci.org/niftylettuce/message-headers)
[](https://github.com/sindresorhus/xo)
[](https://github.com/prettier/prettier)
[](https://lass.js.org)
[](LICENSE)
> Automatically updated list of RFC HTTP permanent and provisional headers from IANA (<https://www.iana.org/assignments/message-headers/message-headers.xhtml>)
>
> Are you receiving the client-side error ["Refused to set unsafe header"](https://stackoverflow.com/questions/50364832/refused-to-set-unsafe-header-access-control-request-headers-angular-4/50366340)? It's because you're trying to modify a standard header sent by the browsers by default (and that is not safe)!
>
> This package is manually updated (for safety) when the automatic nightly builds fail (the remote IANA CSV files were updated).
## Table of Contents
* [Install](#install)
* [Usage](#usage)
* [Contributors](#contributors)
* [License](#license)
## Install
[npm][]:
```sh
npm install message-headers
```
[yarn][]:
```sh
yarn add message-headers
```
## Usage
```js
const messageHeaders = require('message-headers');
console.log('all', messageHeaders.all);
console.log('permanent', messageHeaders.permanent);
console.log('provisional', messageHeaders.provisional);
console.log('standard', messageHeaders.standard);
console.log('deprecated', messageHeaders.deprecated);
```
## Contributors
| Name | Website |
| -------------- | -------------------------- |
| **Nick Baugh** | <http://niftylettuce.com/> |
## License
[MIT](LICENSE) © [Nick Baugh](http://niftylettuce.com/)
##
[npm]: https://www.npmjs.com/
[yarn]: https://yarnpkg.com/