转载地址:https://www.cnblogs.com/xiaoxiaoluoye/p/6945044.html

深入学习地址:https://www.cnblogs.com/Hwangzhiyoung/p/9146740.html

控制台报错:

Refused to load the image '<URL>' because it violates the following content security polity diretive: 'default-src *'. Note that 'img-src' was not explicity set. so 'default-src' is used as a fallback.

(拒绝加载图像“ <URL>”,因为它违反了以下内容安全规定:“ default-src *”。 请注意,未明确设置“ img-src”。)

解决办法:

<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'"/>

设置  " img-src 'self' data: base64; "   即可。

Refused to load the image 'URL' because it violates the following content security polity diretive相关推荐

  1. Refused to execute inline script because it violates the following Content Security Policy directive

    版权声明 本文原创作者:谷哥的小弟 作者博客地址:http://blog.csdn.net/lfdfhl 问题描述 在利用表单向后台提交数据时,前端页面报错: Refused to execute i ...

  2. vue项目运行报错Refused to load the image 'http://localhost:8080/favicon.ico' because it violates the follo

    Refused to load the image 'http://localhost:8080/favicon.ico' because it violates the following Cont ...

  3. Discourse Refused to load the script 错误

    Discourse 在运行的时候提示有 JS 错误. 错误如下: Refused to load the script 'https://www.ossez.com/cdn-cgi/apps/head ...

  4. corodva Refused to load the font——拒绝加载字体

    问题: Refused to load the font 'data:application/x-font-ttf;base64,AAEAAAAPAIAAAwBwRkZUTXMrDTgAAAD8AAA ...

  5. uni-app - Refused to display ‘xxx‘ in a frame because an ancestor violates the following Content Sec

    报错原因 整体流程的话,就是将网页通过 web-view 组件内嵌到 App 中(非小程序),其中有跳转微信公众号的需求,不料却收到了以下报错. 我又不是打包小程序,就套壳个 App ,比较疑惑为什么 ...

  6. Frida出现process with pid XXXX either refused to load frida-agent, or terminated during injection错误的原因

    刚刚Frida出现了一个报错,类似:process with pid 17003 either refused to load frida-agent, or terminated during in ...

  7. Electron中提示:Refused to execute inline event handler because it violates

    场景 在Electron中点击index.html中的button按钮时想要其触发renderer.js的方法. 在index.html中 <button onclick="getPr ...

  8. Refused to load the image

    cordova在运行的时候,在浏览器报一下异常 最后可运行的修改结果如下 <meta http-equiv="Content-Security-Policy" content ...

  9. html+php内联执行JavaScript是报错

    报错信息 read.php:1 Refused to run the JavaScript URL because it violates the following Content Security ...

最新文章

  1. 推荐几本Python电子书
  2. 结合案例深入解析:抽象工厂模式
  3. 【组合数学】组合恒等式 ( 变下项求和 3 组合恒等式 | 变下项求和 4 组合恒等式 | 二项式定理 + 求导 证明组合恒等式 | 使用已知组合恒等式证明组合恒等式 )
  4. STL源码剖析 算法开篇
  5. mysql中if在oracle怎么用_mysql和oracle的mybatis操作
  6. 入侵mysql后入侵linux_在Linux上使用MySQL的心得整理
  7. 【英语学习】【Daily English】U05 Places L04 Can I have some painkillers?
  8. C语言和设计模式(代理模式)
  9. 微服务架构 | 配置中心 - [Config]
  10. 企业实战——Ansible自动化运维基础知识
  11. GVF场下的B-Snake模型
  12. 流体力学与流体计算力学基础(一)
  13. hr面试性格测试30题_HR性格测试题.doc
  14. 烟大计算机考研二战,以坚持铺就考研之路——记经济管理学院考研优秀个人程林林...
  15. 网页前端第五次培训(JS的一些基本使用)
  16. 2022Q4手机银行新版本聚焦提升客群专属、财富开放平台、智能化能力,活跃用户规模6.91亿人
  17. iPhone SDK 包含哪些东西?
  18. 进程调度算法相关习题
  19. 常见的200,404,503等HTTP状态码大全
  20. 验厂中首当其冲的BSCI是什么

热门文章

  1. 怎么确定步进电机的步距角
  2. 做测试,你后悔过吗?
  3. CSDN做测试的老师教你Jmeter生成压力测试报告
  4. 零基础学画画从什么开始学起
  5. 2022年38女神节大促美妆、珠宝、母婴、保健电商数据回顾
  6. HTML——HTML 简介
  7. 计算机网络 华东理工大学 第2章测试
  8. 招聘 | 多家区块链项目招募开发者
  9. 怎么添加附件链接到微信公众号推文
  10. 微信 H5分享 下载jssdk文件