作者:歼鸡队队长_512 | 来源:互联网 | 2023-08-14 09:14
下面是报错信息:
Refused to load the script 'http://*/js/track.js' because it violates the following Content Security Policy directive: "default-src https: data: 'unsafe-inline' 'unsafe-eval' 'self' .qq.com .flzhan.com .gtimg.com .share.baidu.com .gtimg.cn .qlogo.cn img.hb.aicdn.com pub.idqqimg.com nsclick.baidu.com ajax.googleapis.com .qpic.cn code.jquery.com cdn.bootcss.com .sec.qq.com .sinaimg.cn wvjbscheme://* creativecommons.org www.w3.org purl.org tnm2.oa.com statics.dnspod.cn doksoft.com js.plus weixinping weixinpreinject weixin jsbridge". Note that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.
引入文件是这样引入的
HTML头部是这样
我尝试过将js文件放到站内,引入站内的js文件也报这个错误,请问这是怎么回事呢?谢谢