我的云开发也出现这样的问题
小程序云开发环境出故障?开发工具中报错,云环境工具也进不去,通过 API 调用云环境也报错。 [图片] [图片]
2024-04-08提示Content Security Policy of your site blocks the use of 'eval' in JavaScrip 本来网页跳转好好的,出现这个以后,点击跳转网页传不了值,显示的值为空。y of your site blocks the use of 'eval' in JavaScript
开发工具遇到提示信息,怎么修复或者屏蔽掉?[图片] 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.如图所示
2022-01-24