阻止加载混合活动内容

Has*_*dar 26 javascript jquery warnings

我在我的控制台中收到这些警告,我的脚本运行不正常

阻止加载混合活动内容" http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css "

这是截图:

在此输入图像描述

我该如何解决这些警告?

我的脚本:

<script type="text/javascript" src="http://malsup.github.io/jquery.blockUI.js"> </script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
Run Code Online (Sandbox Code Playgroud)

小智 48

使用此代码包含您的cdn文件: 在您的网址中使用https协议:

<link rel="stylesheet" href="https://code.jquery.com/ui/1.8.10/themes/smoothness/jquery-ui.css" type="text/css">
<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.10/jquery-ui.min.js"></script>
Run Code Online (Sandbox Code Playgroud)

或者这种模式:

<link rel="stylesheet" href="//code.jquery.com/ui/1.8.10/themes/smoothness/jquery-ui.css" type="text/css">
<script type="text/javascript" src="//ajax.aspnetcdn.com/ajax/jquery.ui/1.8.10/jquery-ui.min.js"></script>
Run Code Online (Sandbox Code Playgroud)


Aji*_*h S 13

当用户访问提供的页面时HTTP,他们的连接将被打开以进行窃听和man-in-the-middle (MITM)攻击.当用户访问所服务的页面时HTTPS,他们与Web服务器的连接将通过SSL进行身份验证和加密,从而防止窃听和MITM攻击.

但是,如果HTTPS页面包含HTTP内容,则HTTP即使主页面被提供,攻击者也可以读取或修改该部分HTTPS.当HTTPS页面包含HTTP内容时,我们会调用该内容“mixed”.用户正在访问的网页仅部分加密,因为某些内容是通过检索unencryptedHTTP.混合内容拦截器阻止页面HTTP上的某些请求HTTPS.

博客得到这个