获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
新项目什么都没做,为什么也报这个错误
开发工具遇到提示信息,怎么修复或者屏蔽掉?[图片] Content Security Policy of your site blocks the use of 'eval' in JavaScriptThe Content Security Policy (CSP) prevents the evaluation of arbitrary strings as JavaScript to make it more difficult for an attacker to inject unathorized code on your site.To solve this issue, avoid using [代码]eval()[代码], [代码]new Function()[代码], [代码]setTimeout([string], ...)[代码] and [代码]setInterval([string], ...)[代码] for evaluating strings.If you absolutely must: you can enable string evaluation by adding [代码]unsafe-eval[代码] as an allowed source in a [代码]script-src[代码] directive.⚠️ Allowing string evaluation comes at the risk of inline script injection.如图所示
2021-09-14