【发布时间】:2018-07-09 04:32:12
【问题描述】:
我正在为 chrome 和 firefox 创建一个网络扩展程序。我已经集成了 firebase UI 和 firebase auth。 Google 身份验证在 chrome 扩展上运行良好。但是在 Firefox 扩展/附加组件上,它给了我以下错误。
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.
我尝试了几件事,但都没有成功。
- 尝试在 Firebase 身份验证控制台的授权域中添加
moz-extension://dhhjsbhjbajnsabjajbasjbhjasjh。验证错误。 - 尝试了
pop up和redirect两种登录方法。
其他开发人员在为 cordova 或 ionic 开发时也面临类似的问题
【问题讨论】:
标签: javascript node.js firebase firebase-authentication firefox-addon