【问题标题】:Usage of Firebase for Google Auth in Firefox extension在 Firefox 扩展中使用 Firebase 进行 Google Auth
【发布时间】:2019-04-20 14:39:06
【问题描述】:

我正在尝试在 Mozilla Firefox 扩展程序中使用 Firebase 进行 Google 身份验证。 但是,它会引发此错误: This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.

经过一番研究,我发现:

1) Firebase 不支持 Firefox 扩展。

2) 添加moz-extension:// 不起作用。

这里是一些相关问题的链接:

目前有什么解决方法吗?发现问题已经一年了...我需要完全使用 Firebase 进行身份验证,因为它共享公共数据库。

【问题讨论】:

    标签: firebase firebase-authentication firefox-addon


    【解决方案1】:

    Firebase 目前不支持 Chrome 之外的扩展环境,例如 Firefox 插件和 Safari 扩展。

    您可以在 this page 上查看支持的环境的完整列表。

    没有任何方法可以解决此问题,因此,您暂时可以提交功能请求,要求 Firebase 支持其他环境,例如 Firefox 插件和 Safari 扩展程序here

    【讨论】:

    • 感谢您的回答,但我已经知道所有这些信息。我被要求提供任何解决方法
    猜你喜欢
    • 2021-01-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-01
    • 2021-02-08
    • 1970-01-01
    • 2011-03-10
    • 2021-11-02
    相关资源
    最近更新 更多