Some times I am getting cross origin error while login using
$firebaseAuth, Please see my below code used.
var loginObj = $firebaseAuth(firebaseRef);
loginObj.$authWithPassword( {
email: logindata.username,
password: logindata.password
}).then(function (user) {
success(user);
}, function (error) {
failure(error);
});
I am getting the following error:
https://auth.firebase.com/v2/test-intend-7895/auth/password?&email=test@me.com&password=test&v=js-2.1.0&transport=json&suppress_status_codes=true
Failed to load resource: the server responded with a status of 504 (Gateway
Time-out)
(index):1 XMLHttpRequest cannot load
https://auth.firebase.com/v2/test-intend-7895/auth/password?&email=test@me.com&password=test&v=js-2.1.0&transport=json&suppress_status_codes=true.
No 'Access-Control-Allow-Origin' header is present on the requested
resource. Origin 'https://test-intend-7895.firebaseapp.com' is therefore
not allowed access. The response had HTTP status code 504
--Time-out)
(index):1 XMLHttpRequest cannot load
https://auth.firebase.com/v2/test-intend-7895/auth/password?&email=test@me.com&password=test&v=js-2.1.0&transport=json&suppress_status_codes=true.
No 'Access-Control-Allow-Origin' header is present on the requested
resource. Origin 'https://test-intend-7895.firebaseapp.com' is therefore
not allowed access. The response had HTTP status code 504
You received this message because you are subscribed to the Google Groups "Firebase + AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-angular+unsubscribe@googlegroups.com.
To post to this group, send email to firebase-angular@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-angular/04197c0f-b53b-490f-9fbe-460666abb875%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.