# graphiql-custom-headers

> Extended facebook's GraphQL IDE with Custom Headers feature.

Latest version **1.0.0** (published 2017-07-14) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install graphiql-custom-headers
pnpm add graphiql-custom-headers
yarn add graphiql-custom-headers
bun add graphiql-custom-headers
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-07-14 |
| First published | 2017-07-14 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | durisvk |

## Links

- npm: https://www.npmjs.com/package/graphiql-custom-headers
- Repository: https://github.com/Durisvk/graphiql
- Issues: https://github.com/Durisvk/graphiql/issues
- npm.io page: https://npm.io/package/graphiql-custom-headers

## Dependencies (3)

- [marked](https://npm.io/package/marked.md) 0.3.6
- [codemirror](https://npm.io/package/codemirror.md) ^5.26.0
- [codemirror-graphql](https://npm.io/package/codemirror-graphql.md) ^0.6.8

## Recent versions

- 1.0.0 (latest) — 2017-07-14
- 0.0.1 — 2017-07-14

## README

GraphiQL - With Custom Headers
========

Checkout the GraphiQL documentation on https://github.com/graphql/graphiql



To allow **Custom Headers** feature your `graphQLFetcher` might take an extra argument
and supply it instead of headers:

```js
function graphQLFetcher(graphQLParams, myCustomHeaders) {
  return fetch(window.location.origin + '/graphql', {
    method: 'post',
    headers: myCustomHeaders,
    body: JSON.stringify(graphQLParams),
  }).then(response => response.json());
}
```


Copyright (c) 2015, Facebook, Inc. All rights reserved.

---
_Source: https://npm.io/package/graphiql-custom-headers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
