问题
My login with firebase was working fine yet, since today and apparently without any change, I'm getting this error:
Refused to display <oauth redirect url> in a frame because it set 'X-Frame-Options' to 'sameorigin'
And the login does not get through. I'm using firebase 5.5.3 but with 6.3.0 (latest) is exactly the same.
var provider = new firebase.auth.FacebookAuthProvider();
provider.addScope('public_profile,email');
firebase.auth().signInWithPopup(provider).then(function (result) {
console.log(result);
});
It won't even log the result...
Any advise regarding this?
回答1:
This is an issue with Firebase Hosting. It's being addressed.
In the future, if something changes drastically, please contact Firebase support directly so they can collect information and escalate to engineering as needed.
来源:https://stackoverflow.com/questions/57077808/firebase-facebook-authentication-gives-error-refused-to-display-oauth-redirect