diff --git a/graphql/playground/playground.go b/graphql/playground/playground.go index eec10d5ca17..1b04a20daf7 100644 --- a/graphql/playground/playground.go +++ b/graphql/playground/playground.go @@ -41,9 +41,12 @@ var page = template.Must(template.New("graphiql").Parse(` const subscriptionUrl = wsProto + '//' + location.host + '{{.endpoint}}'; const fetcher = GraphiQL.createFetcher({ url, subscriptionUrl }); - ReactDOM.render( - React.createElement(GraphiQL, { fetcher: fetcher }), + React.createElement(GraphiQL, { + fetcher: fetcher, + headerEditorEnabled: true, + shouldPersistHeaders: true + }), document.getElementById('graphiql'), );