我无法使用firefox Web扩展内容脚本将图像添加到GitHub问题页面。
Content Security Policy: The page’s settings blocked the loading
of a resource at
https://api.everhour.com/avatar/MjM4XzE0OTA3MTAyNDIuMTY0OTEx.png (“img-
src https://github.com data: https://assets-cdn.github.com
https://identicons.github.com https://collector.githubapp.com
https://github-cloud.s3.amazonaws.com
https://*.githubusercontent.com”).
我已尝试在manifest.json中设置img-src策略,但它不起作用。
的manifest.json:
{
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'; img-src 'self' 'unsafe-inline' https://api.everhour.com"
}
有人知道如何忽略网络扩展程序中的网页CSP政策吗?