警告:index.html页面运行不安全的内容 [英] Warning : The page index.html ran insecure content

查看:172
本文介绍了警告:index.html页面运行不安全的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google appe引擎上部署了我的应用程序。我的网站使用Dojo和模板claro。当我运行Google Chrome检查时,当我浏览我的网站时,我看到很多警告。以下是警告的类型:

 页面index.html从http://ajax.googleapis.com/运行不安全的内容AJAX /库/道场/ 1.5 /的dijit /主题/克拉罗/ claro.css。 
页面index.html从http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js运行不安全的内容。

我需要在appengine-web.xml或web.xml中配置某些内容吗?

解决方案

如果您的页面始终通过安全网址(https)访问,那么您可以尝试访问这些包含文件的安全版本。我想你可以使用https:代替这两个文件的url中的http:。



如果你想要看,你可以检查页面是安全的,并选择链接的安全或非安全版本。



附录:为了节省人们的时间,我在这里发布@ mercator的卓越的解决方案:


不需要花哨。如果您想要选择安全或非安全版本,具体取决于您自己的站点是否安全,您可以使用协议相关链接。例如。 //ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js



I deployed my application on google appe engine. My web site use Dojo with the template claro. When I run "google chrome inspection", I see a lot of warning when I navigate throught my site. Here is the type of warnings :

The page index.html ran insecure content from http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css.
The page index.html ran insecure content from http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js.

Do I need to configurate something in the appengine-web.xml or web.xml?

解决方案

If your page is always accessed by secure url (https) then you might try accessing the secure versions of those include files. I think you can just use https: in place of http: in the url for those two files.

If you want to get fancy, you can check to see if the page is secure and pick either the secure or non-secure version of the link. I can post a sample of that if you need it.

Addendum: To save people time, I am posting @mercator's superior solution here:

No need to get fancy. If you want to pick the secure or non-secure version depending on whether your own site is secure, you can use a protocol-relative link. E.g. //ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js

这篇关于警告:index.html页面运行不安全的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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