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

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -