when I try to create a new User with JavaScript and Parse in Back4App.io I receive the following error:
Unhandled Promise Rejection: SecurityError: The operation is insecure.
I use the following code:
Parse.initialize("APP_ID", "JS_KEY"); //PASTE HERE YOUR Back4App APPLICATION ID AND YOUR JavaScript KEY
Parse.serverURL = "https://parseapi.back4app.com/";
var user = new Parse.User();
user.save({
username: 'Taki Test',
email: 'sample@email.com',
password: '123456'
}, {
success: function(response) {
alert('New object create with success! ObjectId: ' + response.id + `, ` + user.get('username'));
},
error: function(response, error) {
alert('Error: ' + error.message);
}
})