警告:index.html页面运行不安全的内容 [英] Warning : The page index.html ran insecure content
问题描述
页面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屋!