【问题标题】:Google translate website with Https使用 Https 的谷歌翻译网站
【发布时间】:2014-09-26 14:49:12
【问题描述】:

谷歌翻译在我的网站上完美运行,但是当我需要添加更正时,我在控制台中遇到了这个问题:

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?

【问题讨论】:

    标签: https google-translate


    【解决方案1】:

    当您每次在脚本中引用translate.google.com 时,请确保 使用 https 引用它,并且响应将在 https强>太。希望这会有所帮助!

    干杯!

    【讨论】:

      【解决方案2】:

      我希望您能了解将网站从 HTTP 强制转换为 HTTPS。如果您的网站使用身份验证,那么它还必须在会话期间使用 HTTPS https://support.google.com/chrome/answer/173424?hl=en

      https://security.stackexchange.com/questions/23646/should-we-force-user-to-https-on-website

      【讨论】:

        【解决方案3】:

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

        合成:

        • HTTP 中的 HTTP:没问题;
        • HTTP 中的 HTTPS:没问题;
        • HTTPS 中的 HTTPS:没问题;
        • HTTPS 中的 HTTP:可能存在安全漏洞

        如果您不想自己决定使用哪种协议,请将其从 G 翻译中删除:写您的 URL //translate.google.com/...(不指定协议)。您的浏览器应使用与调用页面相同的协议自动完成 URL。

        另一种选择是始终通过 HTTPS 加载 Google 翻译。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2011-01-31
          • 1970-01-01
          • 2021-02-10
          • 1970-01-01
          • 2014-11-05
          相关资源
          最近更新 更多