Firebase API密钥限制允许Chrome扩展 [英] Firebase api key restriction allow chrome extension

查看:88
本文介绍了Firebase API密钥限制允许Chrome扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个使用Firebase身份验证和实时数据库的网站.我已经将Firebase API密钥访问权限限制为仅对我的服务器进行访问(HTTP引荐来源网址-' https://projectname.firebaseapp.com/').但是现在我也想允许我的chrome扩展程序访问它.

I have developed a website which uses Firebase authentication and realtime database. I've restricted Firebase API Key access to my server only (HTTP referrers - 'https://projectname.firebaseapp.com/'). But now I also want to allow my chrome extension to access it.

推荐答案

找到了解决方案-

将其添加到HTTP引荐来源网址有效-'chrome-extension://yourextensionid/'.

Adding this to HTTP referrers worked - 'chrome-extension://yourextensionid/'.

欢迎使用更好或更安全的解决方案!

Any better or more secure solution is welcomed!

这篇关于Firebase API密钥限制允许Chrome扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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