Skip to content

Commit

Permalink
Merge pull request #174 from wookiem/patch-1
Browse files Browse the repository at this point in the history
Remove masterKey from parse.js
  • Loading branch information
bartonhammond authored Dec 7, 2016
2 parents 05ffc41 + 2965e34 commit 0f98083
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/lib/Parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export class Parse extends Backend {
_.isNull(token) ? null : token.sessionToken.sessionToken

this._applicationId = CONFIG.PARSE.appId
this._masterKey = CONFIG.PARSE.masterKey
this.API_BASE_URL = CONFIG.backend.parseLocal
? CONFIG.PARSE.local.url
: CONFIG.PARSE.remote.url
Expand Down Expand Up @@ -257,10 +256,6 @@ export class Parse extends Backend {
reqOpts.headers['X-Parse-Session-Token'] = this._sessionToken
}

if (this._masterKey) {
reqOpts.headers['X-Parse-Master-Key'] = this.masterKey
}

if (opts.method === 'POST' || opts.method === 'PUT') {
reqOpts.headers['Accept'] = 'application/json'
reqOpts.headers['Content-Type'] = 'application/json'
Expand Down

0 comments on commit 0f98083

Please sign in to comment.