我正在尝试在Firebase中使用电话号码登录,但是在尝试添加Recatchpha窗口时,我始终遇到错误。我收到此错误:
message: "{"error":{"code":403,"message":"Requests from referer http://localhost:5000/ are blocked.","errors":[{"message":"Requests from referer http://localhost:5000/ are blocked.","domain":"global","reason":"forbidden"}],"status":"PERMISSION_DENIED"}}"
到目前为止,这是我的代码:
window.onload = function () {
render()
}
function render() {
window.recaptchaVerifier = new firebase.auth.RecaptchaVerifier('recaptcha-container');
recaptchaVerifier.render()
}
我也尝试查看apikey限制,但这根本不起作用。