Add shouldPersistHeaders = true to GraphiQL options
This option allows GraphiQL to persist custom-defined HTTP headers to local storage. This avoid developers to type those headers again each time the page is refreshed. Closes gh-257
This commit is contained in:
committed by
Brian Clozel
parent
ed8c27923f
commit
d8c2babdde
@@ -40,7 +40,8 @@
|
||||
React.createElement(GraphiQL, {
|
||||
fetcher: gqlFetcher,
|
||||
defaultVariableEditorOpen: true,
|
||||
headerEditorEnabled: true
|
||||
headerEditorEnabled: true,
|
||||
shouldPersistHeaders: true
|
||||
}),
|
||||
document.getElementById('graphiql'),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user