出于某种原因,当你去网址https://www.improvementskills.org/index.cfm谷歌翻译没有出现,但当你去http://www.improvementskills.org/index.cfm它工作正常。 所以我知道问题在于SSL和https。 有谁知道问题是什么以及如何解决它。 谢谢!
For some reason when you go to the url https://www.improvementskills.org/index.cfm google translate does not show up, but when you go to http://www.improvementskills.org/index.cfm it works fine. So I know the issue is with SSL and having https. Does anyone know what the problem is and how to fix it. Thanks!
最满意答案
您正在使用http网址加载Google的JavaScript,即使您的网页使用https 。 浏览器拒绝这一点,因为在https页面中包含非https内容是不安全的。
你需要这样做:
<script type="text/javascript" src="//translate.google.com/...而不是将URL指定为http://translate.google.com/...通过以双斜杠启动URL,浏览器将使用页面本身使用的http或https的任何一个。
You are loading Google's JavaScript with an http URL, even when your page is served with https. The browser rejects that, because it's insecure to include non-https content in an https page.
You need to do this:
<script type="text/javascript" src="//translate.google.com/...rather than specifying the URL as http://translate.google.com/... By starting the URL at the double-slash, the browser will use whichever of http or https the page itself is using.
更多推荐
发布评论