谷歌翻译在我的网站上运行良好,但当我需要添加更正时,我在控制台中遇到了这个问题:
was loaded over HTTPS, but displayed insecure content from 'http://translate.google.com/gen204?client=te-alt&althighlight=1': this content should also be loaded over HTTPS.
was loaded over HTTPS, but is submitting data to an insecure location at 'http://translate.google.com/translate_suggestion': this content should also be submitted over HTTPS.如何强制谷歌翻译使用HTTPS?
发布于 2014-11-28 01:25:35
当您每次在脚本中引用translate.google.com时,请确保使用https来引用它,并且响应也将在https中。希望这能有所帮助!
干杯!
发布于 2014-11-28 14:06:29
我希望你能了解强制网站从HTTPS到HTTPS .If,你的网站使用身份验证,然后它还必须使用HTTPS的生命周期的会话https://support.google.com/chrome/answer/173424?hl=en
https://security.stackexchange.com/questions/23646/should-we-force-user-to-https-on-website
发布于 2014-11-28 18:13:12
当您的页面通过HTTPS加载时,默认的安全行为是阻止任何通过HTTP加载的内容。
要合成:
超文本传输协议中的
如果您希望省去确定使用哪种协议的麻烦,请将其从G translate: write your URL //translate.google.com/...中删除(不指定协议)。您的浏览器应使用与您的调用页面相同的协议自动完成URL。
另一种选择是始终通过HTTPS加载Google Translate。
https://stackoverflow.com/questions/26062372
复制相似问题