我正在使用manifest版本3构建Chrome扩展程序。整个扩展程序的目的是将外部动态脚本注入到页面中(例如,https://example.com/)。但我一直收到以下消息:
Refused to load the script 'https://example.com/' because it violates the following Content Security Policy directive: "script-src 'self'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
我试图在我的清单文件中添加content_security_policy条目,但似乎无法使其工作。假设我加载的这个脚本将从不同的域调用多个其他脚本,有什么方法可以启用它?
Refused to load the script 'https://example.com/' because it violates the following Content Security Policy directive: "script-src 'self'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
我试图在我的清单文件中添加content_security_policy条目,但似乎无法使其工作。假设我加载的这个脚本将从不同的域调用多个其他脚本,有什么方法可以启用它?