diff --git a/src/dashboard/Data/ApiConsole/GraphQLConsole.react.js b/src/dashboard/Data/ApiConsole/GraphQLConsole.react.js index 070fe4b90a..5a9b58bcd5 100644 --- a/src/dashboard/Data/ApiConsole/GraphQLConsole.react.js +++ b/src/dashboard/Data/ApiConsole/GraphQLConsole.react.js @@ -16,7 +16,7 @@ import styles from 'dashboard/Data/ApiConsole/ApiConsole.scss'; export default class GraphQLConsole extends Component { render() { - const { applicationId, graphQLServerURL, masterKey } = this.context.currentApp; + const { applicationId, clientKey, graphQLServerURL, masterKey } = this.context.currentApp; let content; if (!graphQLServerURL) { content = ( @@ -34,6 +34,9 @@ export default class GraphQLConsole extends Component { 'X-Parse-Application-Id': applicationId, 'X-Parse-Master-Key': masterKey } + if (clientKey) { + headers['X-Parse-Client-Key'] = clientKey + } content = (