We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4eab2c8 + 5be62e8 commit 3afbfeeCopy full SHA for 3afbfee
graphiql-spring-boot-autoconfigure/src/main/resources/graphiql.html
@@ -101,6 +101,14 @@
101
102
var headers = ${headers}
103
104
+ function onEditHeaders(newHeaders) {
105
+ try {
106
+ headers = JSON.parse(newHeaders)
107
+ } catch(e) {
108
+ headers = {}
109
+ }
110
111
+
112
// Defines a GraphQL fetcher using the fetch API. You're not required to
113
// use fetch, and could instead implement graphQLFetcher however you like,
114
// as long as it returns a Promise or Observable.
@@ -153,6 +161,7 @@
153
161
props.onEditQuery = onEditQuery
154
162
props.onEditVariables = onEditVariables
155
163
props.onEditOperationName = onEditOperationName
164
+ props.onEditHeaders = onEditHeaders
156
165
157
166
console.debug(props)
158
167
// Render <GraphiQL /> into the body.
0 commit comments