【问题标题】:Firebase Chrome Extension Javascript content_security_policy Manifest 3Firebase Chrome 扩展 Javascript content_security_policy 清单 3
【发布时间】:2021-01-05 20:57:36
【问题描述】:

我刚开始使用chrome extensionsjavascript,看到大家建议使用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


    【解决方案1】:

    这个教程here可以帮助你。它对我有用。

    【讨论】:

      猜你喜欢
      • 2021-08-13
      • 1970-01-01
      • 2012-08-02
      • 2021-10-16
      • 2018-03-09
      • 2012-08-02
      • 1970-01-01
      • 2021-05-04
      • 2021-11-28
      相关资源
      最近更新 更多