[url]的页面在chrome中从[url]中运行不安全的内容 [英] The page at [url] ran insecure content from [url] in chrome

查看:413
本文介绍了[url]的页面在chrome中从[url]中运行不安全的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打开一个链接时,会显示以下消息:chrome
[blocked] https://www.loadmytrailer.com/beta/postload.php http://code.jquery.com/ui/1.10.2/jquery-ui.js
,但在firefox中运行良好。



[我搜索了它并发现当您的站点运行在安全SSL上时,它会阻止来自外部http源的一些不安全内容。 ]



所以我想加载这些不安全的内容,无论如何在chrome
请大家帮助我。

解决方案

您可以使用协议相关的URL。浏览​​器将使用该页面的协议来尝试获取该文件。在非安全页面上 - http。在安全页面上,它将使用https。



例如,而不是:

  http:// code .jquery.com / ui / 1.10.2 / jquery-ui.js 

...您可以使用:

  // code.jquery.com/ui/1.10.2/jquery-ui.js 

!通知没有协议

When i open a link this shows following message in chrome [blocked] The page at https://www.loadmytrailer.com/beta/postload.php ran insecure content from http://code.jquery.com/ui/1.10.2/jquery-ui.js. but run fine in firefox.

[I googled it and found that when your site run on Secure SSL then it blocked some insecure content from external http sources. ]

So i want to loads these insecure content anyway in chrome Please guys help me .

解决方案

You can use protocol-relative URLs.The browser will use the page's protocol to try to obtain the file. On non-secure pages- http. On secure pages it will use https.

For example, instead of:

http://code.jquery.com/ui/1.10.2/jquery-ui.js

...you can use:

//code.jquery.com/ui/1.10.2/jquery-ui.js

! notice absence of protocol

这篇关于[url]的页面在chrome中从[url]中运行不安全的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆