0
我需要在我的扩展程序中监听多个端口。manifest.json中content_security_policy中的多个端口
我的manifest.json content_security_policy行是:
"content_security_policy": "script-src 'self' http://localhost:35729; object-src 'self'",
TNX!
我需要在我的扩展程序中监听多个端口。manifest.json中content_security_policy中的多个端口
我的manifest.json content_security_policy行是:
"content_security_policy": "script-src 'self' http://localhost:35729; object-src 'self'",
TNX!
如果您想要从主机上的多个端口加载脚本,您需要依次将每个端口加入白名单。也就是说,script-src
指令,允许通过HTTPS加载脚本在example.com两个端口443和444看起来像:
script-src https://example.com:443 https://example.com:444;
有没有在CSP没有捷径语法允许白名单多个端口与一个源表达。