parse.com - Testing Parse Authentication Returns Access-Control-Allow-Origin Error -
i'm using parse js sdk. when try log in using
parse.user.login(email, password, { success: function(user) { console.log('hi ' + user); }, error: function(user, error) { console.log(error); } }); my console outputs error message:
xmlhttprequest cannot load https://api.parse.com/1/login. wildcard '*' cannot used in 'access-control-allow-origin' header when credentials flag true. origin 'http://localhost:8080' therefore not allowed access. it appears i'm facing same problem here: https://www.parse.com/questions/i-get-a-problem-of-access-control-allow-origin-when-i-was-using-rest-api i'm using javascript api.
i using parse package available on nodejs , requiring webpack. when switched on cdn, problem no longer persisted. code provided npm package , cdn same (npm package includes todos in comments). problem webpack. i'm not sure how fix it.
Comments
Post a Comment