【发布时间】:2021-08-13 22:51:06
【问题描述】:
我正在尝试从 chrome 插件访问 iframe 并收到以下错误。
拒绝构建“https://mysite.co/”,因为祖先违反了以下内容安全策略指令:“frame-ancestors *”。
我已经在我的 menifest.json 文件中添加了以下行,但它不起作用。
"content_security_policy": "script-src 'self' https://mysite.co/"
请指导。
【问题讨论】:
标签: javascript google-chrome-extension google-chrome-app content-security-policy chrome-plugins