在 chrome 打包的应用程序中,有没有办法声明多个沙箱,每个沙箱都有自己的内容安全策略?

In chrome packaged apps, Is there a way to declare multiple sandboxes, each one having its own content security policy?

我需要让沙箱完全安全,其他的更多 "relaxed"。

我在 manifest.json 中尝试过这个(不起作用,但准确描述了我需要做什么):

...,

"sandbox": [
    {
    "pages":[
      "sandbox1.html"
      ],
    "content_security_policy": "<strict csp...>" 
    },

    {
    "pages":[
      "sandbox2.html"
      ],
    "content_security_policy": "<relaxed csp...>" 
    }
]

不幸的是,我找不到为沙盒页面设置多个 内容安全策略的方法。

documentation 展示了如何为多个沙盒页面实现相同 CSP,但没有说明每个沙盒如何拥有自己的 CSP。

有什么办法可以实现吗?

好像不行; "sandbox" 是一个对象,只能有一个 "content_security_policy" 键。

听起来像是功能请求的想法。