fix: GraphQL playground shows blank page (#9858)
This commit is contained in:
committed by
GitHub
parent
82fdb0d95a
commit
7b5395c5d4
@@ -167,14 +167,14 @@ class ParseGraphQLServer {
|
|||||||
new window.EmbeddedSandbox({
|
new window.EmbeddedSandbox({
|
||||||
target: "#sandbox",
|
target: "#sandbox",
|
||||||
endpointIsEditable: false,
|
endpointIsEditable: false,
|
||||||
initialEndpoint: "${JSON.stringify(this.config.graphQLPath)}",
|
initialEndpoint: ${JSON.stringify(this.config.graphQLPath)},
|
||||||
handleRequest: (endpointUrl, options) => {
|
handleRequest: (endpointUrl, options) => {
|
||||||
return fetch(endpointUrl, {
|
return fetch(endpointUrl, {
|
||||||
...options,
|
...options,
|
||||||
headers: {
|
headers: {
|
||||||
...options.headers,
|
...options.headers,
|
||||||
'X-Parse-Application-Id': "${JSON.stringify(this.parseServer.config.appId)}",
|
'X-Parse-Application-Id': ${JSON.stringify(this.parseServer.config.appId)},
|
||||||
'X-Parse-Master-Key': "${JSON.stringify(this.parseServer.config.masterKey)}",
|
'X-Parse-Master-Key': ${JSON.stringify(this.parseServer.config.masterKey)},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user