We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a45f0f5 commit 34536b3Copy full SHA for 34536b3
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