diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f9785f0d0..697d1dd42f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ### NEXT RELEASE * _Contributing to this repo? Add info about your change here to be included in next release_ +* Fix: Config FETCH results in 401 (#339), thanks to [Matt Simms](https://github.com/brndmg) ### 1.0.22 @@ -18,7 +19,6 @@ * Fix: Can't send push to specific user (#570), thanks to [Dan VanWinkle](https://github.com/dvanwinkle) * Fix: Download link in footer menu (#567), thanks to [Pavel Ivanov](https://github.com/pivanov) - ### 1.0.19 * New: Support for trusting proxies w/ HTTPS diff --git a/src/lib/stores/ConfigStore.js b/src/lib/stores/ConfigStore.js index 7dfd808b5e..d9702931f9 100644 --- a/src/lib/stores/ConfigStore.js +++ b/src/lib/stores/ConfigStore.js @@ -22,8 +22,13 @@ function ConfigStore(state, action) { action.app.setParseKeys(); switch (action.type) { case ActionTypes.FETCH: - return Parse.Config.get().then(({ attributes }) => { - return Map({ lastFetch: new Date(), params: Map(attributes) }); + return Parse._request( + 'GET', + 'config', + {}, + { useMasterKey: true } + ).then((result) => { + return Map({ lastFetch: new Date(), params: Map(result.params) }); }); case ActionTypes.SET: return Parse._request(