Parse platform 测试解析身份验证返回访问控制允许源错误
我正在使用Parse JS SDK。当我尝试使用Parse platform 测试解析身份验证返回访问控制允许源错误,parse-platform,Parse Platform,我正在使用Parse JS SDK。当我尝试使用 Parse.User.logIn(email, password, { success: function(user) { console.log('hi ' + user); }, error: function(user, error) { console.log(error); } }); 我的控制台输出此错误消息: XMLHttpRequest cannot load https://api.parse.
Parse.User.logIn(email, password, {
success: function(user) {
console.log('hi ' + user);
},
error: function(user, error) {
console.log(error);
}
});
我的控制台输出此错误消息:
XMLHttpRequest cannot load https://api.parse.com/1/login.
A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin'
header when the credentials flag is true. Origin 'http://localhost:8080'
is therefore not allowed access.
我似乎面临着与这里相同的问题:
但是我使用的是javascript API。我使用的是nodejs上提供的解析包,并要求它与webpack一起使用。当我切换到CDN时,问题不再存在。npm包和CDN提供的代码几乎完全相同(npm包在注释中包含TODO)。问题可能出在webpack上。我不知道怎么修