是否有可能使用Firebase的Chrome打包应用程序? [英] Is it possible to have a chrome packaged app that utilizes firebase?

查看:65
本文介绍了是否有可能使用Firebase的Chrome打包应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了CSP问题.我尝试将Firebase添加到权限和沙箱中.

I'm running into problems with CSP. I've tried adding firebase to permissions, and sandboxing.

我正在尝试转换此Firebase示例chrome扩展名( https://github.com/firebase /firebase-chrome-extension )添加到chrome打包的应用中.打包的应用程序不喜欢连接到Firebase.我只是不断在控制台中遇到违反安全性的行为.

I am trying to convert this firebase sample chrome extension(https://github.com/firebase/firebase-chrome-extension) to a chrome packaged app. The packaged app doesn't like to connect to firebase. I just keep getting security violations in the console.

推荐答案

我也遇到了同样的问题.似乎" chrome打包的应用"不允许添加"content_security_policy"并重新定义manifest.json

I was also running to the same issue. It seems "chrome packaged app" does not allow adding "content_security_policy" and re-defining the policies in manifest.json

尝试添加它并通过扩展管理器重新加载应用程序,您应该看到以下消息:

Try adding it and re-loading the app via extension manager and you should see the following message:

尝试安装此扩展程序时出现警告: "content_security_policy"仅适用于扩展名和旧版 打包的应用程序,这是一个打包的应用程序.

There were warnings when trying to install this extension: 'content_security_policy' is only allowed for extensions and legacy packaged apps, and this is a packaged app.

这篇关于是否有可能使用Firebase的Chrome打包应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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