Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning : The page index.html ran insecure content

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?

like image 728
user376112 Avatar asked Sep 05 '11 13:09

user376112


2 Answers

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

like image 133
Alan Moore Avatar answered Nov 09 '22 13:11

Alan Moore


what if the site doesn't support https?? For instance, I'm sending the request to world bank, which only supports http?

EDIT: on chrome, click the "shield" icon on the right of the address bar.

like image 38
wei Avatar answered Nov 09 '22 15:11

wei