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 3e5c66d + ddbe0b9 commit 3afcf73Copy full SHA for 3afcf73
src/dashboard/Data/ApiConsole/GraphQLConsole.react.js
@@ -29,16 +29,18 @@ export default class GraphQLConsole extends Component {
29
</div>
30
);
31
} else {
32
- const headers = {
+ const parseHeaders = {
33
'X-Parse-Application-Id': applicationId,
34
'X-Parse-Master-Key': masterKey
35
}
36
if (clientKey) {
37
- headers['X-Parse-Client-Key'] = clientKey
+ parseHeaders['X-Parse-Client-Key'] = clientKey
38
39
content = (
40
<GraphiQL
41
- fetcher={async graphQLParams => {
+ headers={JSON.stringify(parseHeaders)}
42
+ headerEditorEnabled={true}
43
+ fetcher={async (graphQLParams, {headers}) => {
44
const data = await fetch(
45
graphQLServerURL,
46
{
0 commit comments