Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
谷歌翻译网站与Https_Https_Google Translate - Fatal编程技术网

谷歌翻译网站与Https

谷歌翻译网站与Https,https,google-translate,Https,Google Translate,Google translate在我的网站上运行得非常好,但当我需要添加更正时,我在控制台中遇到了以下问题: 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 H

Google translate在我的网站上运行得非常好,但当我需要添加更正时,我在控制台中遇到了以下问题:

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.

如何强制Google translate使用HTTPS?

当您每次在脚本中引用
translate.Google.com
时,请确保您使用HTTPS引用它,并且响应也将在HTTPS中。希望这有帮助


干杯

我希望您能了解如何将网站从HTTP强制转换为HTTPS。如果您的网站使用身份验证,则在会话期间也必须使用HTTPS


通过HTTPS加载页面时,默认安全行为是阻止通过HTTP加载的任何内容

要合成:

  • HTTP中的HTTP:没问题
  • HTTP中的HTTPS:没有问题
  • HTTPS中的HTTPS:没问题
  • HTTPS中的HTTP:可能存在安全漏洞
如果您想省去确定使用哪个协议的麻烦,请将其从G translate中删除:编写您的URL
//translate.google.com/…
(不指定协议)。您的浏览器应使用与呼叫页面相同的协议自动完成URL

另一种选择是始终通过HTTPS加载Google Translate