我遇到了 CSP 问题。我尝试将 firebase 添加到权限和沙箱中。
我正在尝试将此 Firebase 示例 chrome 扩展 ( https://github.com/firebase/firebase-chrome-extension ) 转换为 chrome 打包应用程序。打包的应用程序不喜欢连接到 firebase。我不断在控制台中遇到安全违规问题。
最佳答案
我也遇到了同样的问题。似乎“chrome打包应用程序”不允许添加“content_security_policy”并在manifest.json中重新定义策略
尝试添加它并通过扩展管理器重新加载应用程序,您应该看到以下消息:
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 - 是否有可能有一个利用 firebase 的 chrome 打包应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17624106/