Refused to load the image '' because it violates the following Content Security Policy directive: "img-src 'self' blob:data:".
时间: 2023-12-22 22:24:40 浏览: 327
FTP-document.rar_fit//127.0.0.1:5050_ftb 127.0.0.1 2121_ftb:127.
引用:Refused to load the image '<URL>' because it violates the following content security policy directive: 'default-src *'. Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback.
引用:In index.html, include the following meta tag: `<meta http-equiv="Content-Security-Policy" content="default-src *;img-src 'self' data: base64; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'"/>` After `default-src: *;`, add `img-src 'self' data: base64;`.
引用:Refused to display ‘https://github.com/join’ in a frame because an ancestor violates the following Content Security Policy directive: “frame-ancestors ‘none'”.
根据引用内容所提供的信息,当加载图片时出现了拒绝加载的情况。这是因为图片违反了Content Security Policy(内容安全策略)中关于图片来源的指令。具体来说,图片的来源应该是 'self' 或者是以 'blob:data:' 开头的数据URI。然而,由于没有明确设置 'img-src',所以默认使用的是 'default-src' 指令。这意味着只有来源于当前域名的图片和以 'blob:data:' 开头的数据URI的图片才能被加载。
阅读全文