firebase - 是否有可能有一个利用 firebase 的 chrome 打包应用程序?

标签 firebase google-chrome-app

我遇到了 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/

相关文章:

firebase - 使用 .off 停用事件

javascript - chrome.tabs.create 不起作用

javascript - 前端JavaScript程序

sockets - 第二次 chrome.sockets.tcp.send 调用始终导致 "500 Invalid command: try being more creative"

javascript - 在可以读取新数据时获取事件 - chrome.socket.read API

firebase - Firebase 是否可以自动聚合数据

firebase - 使用 react-native-firebase 在 React Native 上自定义通知

javascript - 尝试将文件上传到 Google Drive 时不断收到“需要登录”错误

firebase - 云Firestore : how to fetch a document reference inside my collection query and map it as a JSON value?

firebase - 如何指定已知路径的读取访问权限但禁用 Firebase 数据库中的枚举?