this request has been blocked;the content must be served over https

1、错误:

this request has been blocked;the content must be served over https

2、遇到错误的情况:

在github page搭建自己写的页面时。搭建成功后,访问自己的页面返回的错误。我的页面阻止的是jQuery的官网引入的jQuery。

<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>

浏览器将http阻止。

3、原因:

此请求已被阻止;内容必须通过HTTPS服务。

网上给的解决办法:
谷歌浏览器上https页面下的js,css,ajax都得是https协议的。IE会弹出提示框。解决办法就是都改成https协议的。

4、针对我的情况的解决办法:

解决方法一:将jQuery下载到本地,然后上传到github你对应的引入文件夹。

解决方法二:引入HTTPS协议的jQuery:<script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>。

解决方法三:写原生js实现相同效果。

验证三种方法都解决了我出现的这个错误。

其他

[我的博客,欢迎交流!](http://rattenking.gitee.io/stone/index.html)

[我的CSDN博客,欢迎交流!](https://blog.csdn.net/m0_38082783)

[微信小程序专栏](https://blog.csdn.net/column/details/18335.html)

[前端笔记专栏](https://blog.csdn.net/column/details/18321.html)

[微信小程序实现部分高德地图功能的DEMO下载](http://download.csdn.net/download/m0_38082783/10244082)

[微信小程序实现MUI的部分效果的DEMO下载](http://download.csdn.net/download/m0_38082783/10196944)

[微信小程序实现MUI的GIT项目地址](https://github.com/Rattenking/WXTUI-DEMO)

[微信小程序实例列表](http://blog.csdn.net/m0_38082783/article/details/78853722)

[前端笔记列表](http://blog.csdn.net/m0_38082783/article/details/79208205)

[游戏列表](http://blog.csdn.net/m0_38082783/article/details/79035621)

原文地址:https://www.cnblogs.com/linewman/p/9918558.html