Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Creating an example based on Unpkg (CDN), I want to add defaultHeaders
additionally doing it so:
...
root.render(
React.createElement(GraphiQL, {
fetcher,
defaultEditorToolsVisibility: true,
defaultHeaders: { 'foo': 'bar' },
plugins: [explorerPlugin],
}),
);
When loading the page I get this on the console:
Expected Behavior
Page loads with default Headers set.
Steps To Reproduce
Open https://codesandbox.io/p/sandbox/7my5dd
See console output
Environment
- GraphiQL Version:
- OS:
- Browser:
- Bundler:
react
Version:graphql
Version:
Anything else?
No response