Cross Origin error in Firebase authentication -


some times cross origin error, while logging in using $firebaseauth:

var loginobj = $firebaseauth(firebaseref);         loginobj.$authwithpassword( {             email: logindata.username,             password: logindata.password         }).then(function (user) {             success(user);         }, function (error) {              failure(error);         }); 

i receiving following error, while login.

https://auth.firebase.com/v2/test-innit-7856/auth/password?&email=test@test.com&password=test&v=js-2.1.0&transport=json&suppress_status_codes=true

failed load resource: server responded status of 504 (gateway time-out) (index):1 xmlhttprequest cannot load https://auth.firebase.com/v2/test-innit-7856/auth/password?&email=test@test.com&password=test&v=js-2.1.0&transport=json&suppress_status_codes=true. no 'access-control-allow-origin' header present on requested resource. origin 'https://test-innit-7856.firebaseapp.com' therefore not allowed access. response had http status code 504


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -