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.
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
Post a Comment