本文介绍了是否有可能使用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:

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

08-01 16:59