Skip to content

Commit d8c2bab

Browse files
marceloverdijkbclozel
authored andcommitted
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
1 parent ed8c279 commit d8c2bab

File tree

1 file changed

+2
-1
lines changed
  • spring-graphql/src/main/resources/graphiql

1 file changed

+2
-1
lines changed

spring-graphql/src/main/resources/graphiql/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
React.createElement(GraphiQL, {
4141
fetcher: gqlFetcher,
4242
defaultVariableEditorOpen: true,
43-
headerEditorEnabled: true
43+
headerEditorEnabled: true,
44+
shouldPersistHeaders: true
4445
}),
4546
document.getElementById('graphiql'),
4647
);

0 commit comments

Comments
 (0)