this request has been blocked;the content must be served over https
来源:互联网 发布:静电场朔 知乎 编辑:程序博客网 时间:2024/05/17 02:36
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实现相同效果。
验证三种方法都解决了我出现的这个错误。
阅读全文
0 0
- This request has been blocked; the content must be served over HTTPS.
- this request has been blocked;the content must be served over https
- android WebView加载不出网页内容This request has been blocked; the content must be served over HTTPS.
- android WebView加载不出网页内容This request has been blocked; the content must be served over HTTPS.
- HTTPS调用百度地图API提示“BMap未定义, This request has been blocked; the content must be served over HTTPS.,was
- Mixed Content: The page was loaded over HTTPS,blocked the content must be served over HTTPS.
- Cannot complete the request. This installation has not been configured properly for softWare Updat
- Your account has been blocked
- 问题:getInputStream() has already been called for this request
- Json getInputStream() has already been called for this request
- getInputStream/getReader() has already been called for this request
- X64 调试 ERR(1275) This driver has been blocked from loading
- git Your account has been blocked
- git Your account has been blocked
- 解决:efi usb device has been blocked by the current security policy
- IllegalStateException: Content has been consumed
- Android:Content has been consumed
- IllegalStateException: Content has been consumed
- 5-28 猴子选大王 (20分)
- PAT甲1020
- Kaggle : Using a Convolutional Neural Network for classifying Cats vs Dogs
- proxmox异常关机后的操作
- mvn 本地打包的小坑
- this request has been blocked;the content must be served over https
- 位制转换
- Jquery中$(this)与this的区别
- Android自定义状态栏颜色
- Kali Linux(1)-序言
- String、StringBuffer与StringBuilder之间区别
- Minor GC、Major GC和Full GC之间的区别
- 机器学习(八)- Overfitting
- HDU4990 Reading comprehension