Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Parse platform 解析Rest API PUT不适用于Unity WebGL_Parse Platform_Unity3d_Unity Webgl - Fatal编程技术网

Parse platform 解析Rest API PUT不适用于Unity WebGL

Parse platform 解析Rest API PUT不适用于Unity WebGL,parse-platform,unity3d,unity-webgl,Parse Platform,Unity3d,Unity Webgl,我正在我们现有的IOS跑步应用程序上开发unity webgl。所有关于用户的数据都保存在Parse上。我已经实现了restapi来与Parse通信。实现了Get和Post(不传递方法头),它们工作正常,但当我尝试使用PUT更新数据时: string url = "https://api.parse.com/1/" string ObjectID = "ERd99Q0kmd" string CallLink = url + "classes/PlayerProfile/" + ObjectID

我正在我们现有的IOS跑步应用程序上开发unity webgl。所有关于用户的数据都保存在Parse上。我已经实现了restapi来与Parse通信。实现了Get和Post(不传递方法头),它们工作正常,但当我尝试使用PUT更新数据时:

string url = "https://api.parse.com/1/"
string ObjectID = "ERd99Q0kmd"

string CallLink = url + "classes/PlayerProfile/" + ObjectID ;
            string jsonString = "{\"TotalCoins\":40}";

            WWWForm form = new WWWForm();
            var headers = form.headers;
            headers["X-Parse-Application-Id"] = appID;
            headers["X-Parse-REST-API-Key"] = restapikey;
            headers["Content-Type"] = "application/json";
            headers["Content-Length"] = jsonString.Length.ToString();

            var encoding = new System.Text.UTF8Encoding();

            WWW www = new WWW(CallLink,encoding.GetBytes(jsonString),headers);

            yield return www;
            if (www.error != null)
            {
                Debug.Log( "CallGet:Error:"+www.error);
            }
            else
            {
                Debug.Log("CallGet:Success:"+www.text);
            }
它给出了错误的请求错误。我还尝试了标题“Method”,它也给出了错误的请求,但当我尝试“X-HTTP-Method-Override”时,它在unity editor中工作,但在浏览器中仍然不工作,并出现以下错误:

请求标头字段X-HTTP-Method-Override不允许由 访问控制允许飞行前响应中的标头


请帮助我如何更新数据。

你知道Parse正在关闭吗???大多数都是对Firebase的更改,大致相同。是的,我知道,但当parse宣布关闭时,我们的WebGL构建即将到来。因此,我们决定,现在我们应该使用Parse创建WebGL的构建,并使其生效,然后我们切换到其他东西,如Firebase,然后上传应用程序的版本2。