Warning : The page index.html ran insecure content

后端 未结 3 1924
粉色の甜心
粉色の甜心 2020-12-14 06:34

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 navigat

3条回答
  •  心在旅途
    2020-12-14 07:21

    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

提交回复
热议问题