Refused to load the image 'URL' because it violates the following content security polity diretive
转载地址: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相关推荐
- Refused to execute inline script because it violates the following Content Security Policy directive
版权声明 本文原创作者:谷哥的小弟 作者博客地址:http://blog.csdn.net/lfdfhl 问题描述 在利用表单向后台提交数据时,前端页面报错: Refused to execute i ...
- 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 ...
- Discourse Refused to load the script 错误
Discourse 在运行的时候提示有 JS 错误. 错误如下: Refused to load the script 'https://www.ossez.com/cdn-cgi/apps/head ...
- corodva Refused to load the font——拒绝加载字体
问题: Refused to load the font 'data:application/x-font-ttf;base64,AAEAAAAPAIAAAwBwRkZUTXMrDTgAAAD8AAA ...
- uni-app - Refused to display ‘xxx‘ in a frame because an ancestor violates the following Content Sec
报错原因 整体流程的话,就是将网页通过 web-view 组件内嵌到 App 中(非小程序),其中有跳转微信公众号的需求,不料却收到了以下报错. 我又不是打包小程序,就套壳个 App ,比较疑惑为什么 ...
- 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 ...
- Electron中提示:Refused to execute inline event handler because it violates
场景 在Electron中点击index.html中的button按钮时想要其触发renderer.js的方法. 在index.html中 <button onclick="getPr ...
- Refused to load the image
cordova在运行的时候,在浏览器报一下异常 最后可运行的修改结果如下 <meta http-equiv="Content-Security-Policy" content ...
- html+php内联执行JavaScript是报错
报错信息 read.php:1 Refused to run the JavaScript URL because it violates the following Content Security ...
最新文章
- 推荐几本Python电子书
- 结合案例深入解析:抽象工厂模式
- 【组合数学】组合恒等式 ( 变下项求和 3 组合恒等式 | 变下项求和 4 组合恒等式 | 二项式定理 + 求导 证明组合恒等式 | 使用已知组合恒等式证明组合恒等式 )
- STL源码剖析 算法开篇
- mysql中if在oracle怎么用_mysql和oracle的mybatis操作
- 入侵mysql后入侵linux_在Linux上使用MySQL的心得整理
- 【英语学习】【Daily English】U05 Places L04 Can I have some painkillers?
- C语言和设计模式(代理模式)
- 微服务架构 | 配置中心 - [Config]
- 企业实战——Ansible自动化运维基础知识
- GVF场下的B-Snake模型
- 流体力学与流体计算力学基础(一)
- hr面试性格测试30题_HR性格测试题.doc
- 烟大计算机考研二战,以坚持铺就考研之路——记经济管理学院考研优秀个人程林林...
- 网页前端第五次培训(JS的一些基本使用)
- 2022Q4手机银行新版本聚焦提升客群专属、财富开放平台、智能化能力,活跃用户规模6.91亿人
- iPhone SDK 包含哪些东西?
- 进程调度算法相关习题
- 常见的200,404,503等HTTP状态码大全
- 验厂中首当其冲的BSCI是什么