CSP14317自定义JavaScript错误 [英] CSP14317 Error with custom JavaScript

查看:63
本文介绍了CSP14317自定义JavaScript错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好社区

使用Content Editor Webpart将自定义JavaScript代码嵌入到我的网站中时,我遇到了问题.

I'm facing a problem with custom JavaScript code embedded into my site with the Content Editor Webpart.

确切的错误消息是:

CSP14317:   ' - ' 指令 安全政策 因为指定了nonce或hash值.

CSP14317: Ignoring 'unsafe-inline' for directive 'script-src' in Content-Security-Policy because nonce or hash value is specified. 

我的脚本未指定与错误消息相反的现时值或哈希值.

My script does not specify a nonce or hash value contrary to the error message.

如果有人知道为什么会发生这种情况,请告诉我

If someone knows why this happens, please let me know

最好的问候,

Luca

推荐答案

Luca,

我建议您在可能的情况下提供完整的代码,这应该使问题更易于研究.

I suggest you provide the complete code in use if possible, which should make the issue easier to be researched.

最好的问候,

丹尼斯


这篇关于CSP14317自定义JavaScript错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆