如何绕过masterKey解析服务器返回错误:保存数据时未授权141

问题描述

有人可以帮我绕过解析服务器masterKey吗?

我正在尝试使用解析服务器从客户端保存数据,但出现错误 141未授权。当我登录该应用程序时,一切正常,但是一旦我注销并尝试从客户端必须填写的一种表单中保存数据,然后再登录保存功能就无法使用。

我尝试设置以下Parse.serverURL = "http://localhost:1337/parse/";

,但收到无效的JSON。这是我的代码

var post = new Place();
var post = Parse.Object.extend("Place");
post.set("title","New York");
post.set("address","22 smith street");
post.set("website","www.dunked.com");
post.set("phone","0123456789");
post.save().then(function (post) {
 console.log("Post created successful with name: " + post.get("title"));})
.catch(function (error) {
 console.log("Error: " + error.code + " " + error.message);
 errMsg = "post not created.";
 showDialog(error.message);});

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)