我想在 html 中使用 iframe,但出现此错误:
拒绝执行内联脚本,因为它违反了以下内容安全策略指令:“script-src 'unsafe-eval' 'self'”。启用内联执行需要“unsafe-inline”关键字、哈希(“sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE=”)或随机数(“nonce-...”)。
我的代码:
<iframe src="test.com" height="200" width="300" title="Iframe Example"></iframe>
我该如何解决这个错误谢谢提前