当浏览器出现“was loaded over HTTPS, but requested an insecure resource/frame”这种错误是,一般都是因为网站是HTTPS的,而对方的链接是HTTP协议的,因此在Ajax或者javascript请求时,就会报如下这种错误,iframe加载不出来:

Mixed Content: The page at "https://www.xxx.html" was loaded over HTTPS, but requested an insecure frame "http://www.xx.html". This request has been blocked; the content must be served over HTTPS.

解决方案:

在网站<head>标签里面加入如下内容即可:

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

它会自动将HTTP请求升级成安全的HTTPS请求。

修复报错Mixed Content: The page at “https://“ was loaded over HTTPS, but requested an insecure “http://“相关推荐

  1. http请求https报错:Mixed Content: The page at ‘xxx‘ was loaded over HTTPS, but requested an insecure...

    当我们的浏览器出现类似"was loaded over HTTPS, but requested an insecure resource/frame"这种错误是,一般都是因为我们 ...

  2. html页面和手机比例一致 一比一自适应 Mixed Content: The page at ‘xxx‘ was loaded over HTTPS, but requested an insec

    1. HTML页面与手机端一比一适应 这行代码是一比一自适应,目的是让手机端看见的网页和在电脑上看见的相同,不写这一行会导致手机上的网页特别小. 原因是电脑显示的是px和手机上像素单位不一致,在< ...

  3. Nginx报错Mixed Content: The page was loaded over HTTPS, This content should also be served over https

    报错信息如下: Mixed Content: The page at 'https://www.example.com' was loaded over HTTPS, but requested an ...

  4. iframe 报错Mixed Content: The page at ‘xxx‘. This request has been blocked; the content must be served

    问题原因 当前页面通过iframe嵌套其他页面时,因为主页面为https协议,加载页面协议也是https,但是iframe嵌套的页面内部的资源请求使用了http导致资源无法正常加载: 解决办法 在主页 ...

  5. Mixed Content: The page at ‘xxx‘ was loaded over HTTPS, but requested an insecure resource ‘xxx‘.

    今天使用nginx+tomcat+ssl完成了web项目的部署,本以为没有什么问题,但是在页面测试的时候又蹦出了这么一个问题,大致是说由于配置了HTTPS,但是之前的请求是通过HTTP请求的,所以现在 ...

  6. 接口报错mixed content blocked

    原因:https不能调用http接口. 转载于:https://www.cnblogs.com/wangxuehao/p/6993042.html

  7. vue项目高德地图Mixed Content: The page at ‘https://****.com/cockpit/‘ was loaded over HTTPS, b

    vue项目高德地图引入https相关报错 vue项目中高德地图引入相关问题 原因和解决方案 vue项目中高德地图引入相关问题 公司年前一个vue项目一期,其中有个数据可视化模块引入了高德地图,年前发布 ...

  8. 解决Mixed Content:the page at‘https://‘ was loaded over HTTPS,but requested an insecure resource ‘http

    解决Mixed Content:the page at'https://' was loaded over HTTPS,but requested an insecure resource 'http ...

  9. Mixed Content: The page at was loaded over HTTPS, but requested an insecure imag

    让浏览器不再显示 https 页面中的 http 请求警报 HTTPS 是 HTTP over Secure Socket Layer,以安全为目标的 HTTP 通道,所以在 HTTPS 承载的页面上 ...

最新文章

  1. GPU运行Tensorflow详细教程及错误解决
  2. PostCss 从0开始
  3. git 生成patch和使用patch
  4. c语言void replace(str,ch)替换字符串,C++ 中字符串查找、字符串截取、字符串替换...
  5. ElementUI:文本框实现远程搜索的用法
  6. Android Json 解析
  7. 连接mysql数据库_解决Navicat连接MySQL数据库报错问题
  8. 软件工程概论课后作业01
  9. 如何编译并使用x264库
  10. 前端aes专用秘钥加解密_Javascript实现前端AES加密解密功能
  11. oppoA83怎么升级android版本,OPPOA83系统刷机包(官方最新固件升级包正式版-A.37)...
  12. C语言:for循环(for循环,while 循环:计算1加到100的值)
  13. android模拟器超级root,android模拟器root,avd root,emulator root教程
  14. 事业单位计算机类岗位考试试题,国家机关(事业单位)计算机岗位考试试题
  15. python中文社区-python-chinese.GitHub.io
  16. 解压后在别的电脑能安装PS,在我电脑就提示安装文件损坏
  17. Linux(Centos7)yum安装Nginx
  18. Word格式之参考文献交叉引用
  19. 多线程---和尚吃馒头问题
  20. android之使用QQ互联实现qq账号登录App

热门文章

  1. android相机开发书籍,Android Camera 驱动开发入门必备知识有哪些?
  2. 六部门发布38条举措支持民企改革发展转型升级
  3. Web3j签名与验签
  4. 1037 在霍格沃茨找零钱 (20 分)
  5. unauthorized 项目请求_请求因HTTP状态401失败:Unauthorized 的原因?
  6. Nuget 401 Unauthorized 错误
  7. Unknown command: crawl(爬虫框架Scrapy遇到的常见错误)
  8. 高考报考计算机专业必选科目,2019新高考金融高考选什么 必选科目
  9. Python爬虫:Scrapy中runspider和crawl的区别
  10. VS2019下载、安装和测试