我在 WebGL 中遇到 parse + unity 的问题,它在 android 或 pc 中运行良好,但是当我在 web 中测试时出现此错误
exception thrown: SyntaxError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': 'sme 0' is not a valid HTTP header field value.,Error: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': 'sme 0' is not a valid HTTP header field value.
at Error (native)
at _JS_WebRequest_SetRequestHeader (http://localhost:60265/Release/Web.js:1:299623)
at aAg (http://localhost:60265/Release/Web.js:28:772491)
at YBc (http://localhost:60265/Release/Web.js:23:638406)
at Array.Are (http://localhost:60265/Release/Web.js:24:499286)
at U4p (http://localhost:60265/Release/Web.js:5:760172)
at Z4p (http://localhost:60265/Release/Web.js:5:770191)
at bXo (http://localhost:60265/Release/Web.js:9:582682)
at Array.vWo (http://localhost:60265/Release/Web.js:9:501983)
at Array.dap (http://localhost:60265/Release/Web.js:9:944092)Module.printErr @ (index):34Browser.mainLoop.runIter @ Web.js:1Browser_mainLoop_runner @ Web.js:1
你知道这是否是一个错误吗?我正在使用个人版的统一
在 chrome 和 firefox 中测试过,在这两种情况下都出现错误
已编辑
此代码破坏了 WebGL 游戏
ParseUser.LogInAsync ("aaaaaa", "bbbbbb").ContinueWith (t => {
if (t.IsFaulted || t.IsCanceled){
ParseUser user = new ParseUser ();
user ["username"] = "aaaaaa";
user ["password"] = "bbbbbb";
ParseUser.LogOutAsync().ContinueWith(c=>{
user.SignUpAsync().ContinueWith(b =>{
if (b.IsFaulted || b.IsCanceled){
print ("signup fail");
}else{
print ("signup success");
}
});
});
}else{
print ("login success");
}
});