Google Translates Website Using Https

Google translate works fine on my site, but when I need to add a fix, I have this problem in the console:

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.

How to get Google to switch to HTTPS?

+4
source share
3 answers

When you link to translate.google.comeach time in a script, make sure you link to it using https and the response will be in https . Hope this helps!

Hooray!

+1
source

HTTPS, - , HTTP.

:

  • HTTP HTTP: ;
  • HTTPS HTTP: ;
  • HTTPS HTTPS: ;
  • HTTP HTTPS: .

If you want to save yourself the need to determine which protocol to use, remove it from the G-translation: write the URL //translate.google.com/...(without specifying the protocol). Your browser should automatically populate the URL with the same protocol as your calling page.

Another option is to always download Google Translate via HTTPS.

0
source

All Articles