以下是報錯訊息:
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-srcas 'default-sed a fallback.
引入檔案是這樣引入的
HTML頭部是這樣
我嘗試將js檔案放到站內,引入站內的js檔案也報這個錯誤,請問這是怎麼回事?謝謝
Note that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.
從報錯信息來看,你們的資源配置信息錯了,把一些東西屏蔽了。