问题描述
我尝试在Angular应用的iframe中包含Adobe xD原型,这样做会收到此错误:
[Report Only]
Refused to compile or instantiate WebAssembly
module because 'wasm-eval' is not an allowed source of script in the following Content Security Policy
directive:
"
script-src
https://static.adobelogin.com/imslib/imslib.min.js
https://prod.adobeccstatic.com/
'self' 'unsafe-eval'
https://bam.nr-data.net/
https://api.demandbase.com/
https://js-agent.newrelic.com/
https://www.gstatic.com/recaptcha/
https://c.evidon.com/geo/country.js
https://assets.adobedtm.com/
https://use.typekit.net/
https://www.google.com/recaptcha/api.js
https://*.adobe.com
https://*.cookielaw.org/
https://*.onetrust.com/ 'nonce-a5e5d635-4062-43de-b73a-04a9599d3d1a'
".
到目前为止,我还没有制定内容政策。一旦包含src-link,该错误就会出现:
如果您打开此Stackblitz app并使用浏览器开发工具检查预览,也可以检查出错误。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)