简体   繁体   English

Firebase+Chrome 应用(无扩展)

[英]Firebase+Chrome app(no extension)

I'm trying to implement Firebase in a Chrome app ( packaged app before ).我正在尝试在 Chrome 应用程序(之前打包的应用程序)中实现 Firebase。 I trying include this in my manifest :我尝试将其包含在我的清单中:

"content_security_policy": "script-src 'self' https://cdn.firebase.com https://*.firebaseio.com; object-src 'self'", 

but i found this issue : content security policy' is only allowed for extensions and legacy packaged apps, but this is a packaged app.但我发现了这个问题:内容安全策略'仅适用于扩展程序和遗留的打包应用程序,但这是一个打包应用程序。 exist other way to implement Firebase in chrome apps?是否存在其他方式在 Chrome 应用程序中实现 Firebase? Is possible?有可能吗?

Thanks for your help!谢谢你的帮助!

content_security_policy 仅适用于 chrome 扩展,不适用于打包的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM