【发布时间】:2021-01-05 20:57:36
【问题描述】:
我刚开始使用chrome extensions 和javascript,看到大家建议使用Manifest version 3 开始。我想在我的扩展中实现firebase,而在旧的Manifest version 2 中我需要加入这个:
"content_security_policy": "script-src 'self' https://cdn.firebase.com https://apis.google.com https://www.gstatic.com; object-src 'self'"
让一切正常。但是这部分现在在Manifest version 3 中发生了变化。它应该看起来像这样:
"content_security_policy": {
"extension_pages": "...",
"sandbox": "..."
},
但我不能让它工作:/
【问题讨论】:
标签: javascript firebase google-chrome google-chrome-extension content-security-policy