Description
Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!
-[x] You've met the prerequisites.
-[x] You're running the latest version of Parse Server.
-[x] You've searched through existing issues. Chances are that your issue has been reported or resolved before.
Environment Setup
Heroku one-clik deploy
Steps to reproduce
-
I create two config env vars in heroku:
ANON_USERS = false
CLIENT_CLASS_CREATION = false -
I clone the app via git (with heroku cli already installed) and added these two new values to the options hash:
var api = new ParseServer({
databaseURI: databaseUri || 'mongodb://localhost:27017/dev',
cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
appId: process.env.APP_ID || 'myAppId',
masterKey: process.env.MASTER_KEY || '', //Add your master key here. Keep it secret!
serverURL: process.env.SERVER_URL || 'http://localhost:1337', // Don't forget to change to https if needed
enableAnonymousUsers: process.env.ANON_USERS || false,
allowClientClassCreation: process.env.CLIENT_CLASS_CREATION || false
}); -
Commit and push. No errors server is running fine.
-
Use the JS SDK (latest version) to post to a new class, user not logged in. The class and document are created on mLab despite both config options being correctly set to FALSE:
testParse: function() {
var obj = new Parse.Object('testclass');
obj.set('key','test');
obj.save().then(function(obj) {
console.log(obj.toJSON());
var query = new Parse.Query('testclass');
query.get(obj.id).then(function(objAgain) {
console.log(objAgain.toJSON());
}, function(err) {console.log(err); });
}, function(err) { console.log(err); });
}
Is this an app cache issue?