如何在Firebase中阻止localhost? [英] How to block localhost in firebase?

查看:72
本文介绍了如何在Firebase中阻止localhost?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Firebase中阻止localhost,只允许我的安全域.我尝试在登录方法中使用授权域",但它没有阻止本地主机.有什么办法只允许我的网站上的某些网址/域?

I want to block localhost in firebase and only allow my secure domain. I've tried using the "Authorized domain" in the sign-in method but it's not blocking the localhost. is there any way to allow only certain url/domain on my website?

推荐答案

您可以从授权域列表中删除localhost.将鼠标悬停在Firebase控制台中的行上.该行的右侧将显示垃圾桶图标,您可以单击该图标以删除该域.

You can delete localhost from your list of authorized domains. Hover over the row in the Firebase Console. The trash bin icon will appear on the right side of the row and you can click that to delete that domain.

请注意,这仅影响电话身份验证和OAuth域. Firebase Auth不会对电子邮件/密码登录执行域检查.

Note this affects phone auth and OAuth domains only. Firebase Auth does not perform domain checks on email/password sign in.

这篇关于如何在Firebase中阻止localhost?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆