fix: GraphQL playground shows blank page (#9858)

This commit is contained in:
Alan Maulana Rahman
2025-09-21 22:45:07 +07:00
committed by GitHub
parent 82fdb0d95a
commit 7b5395c5d4

View File

@@ -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)},
}, },
}) })
}, },