Вот так выглядит мой код:
let image = new Image(); image.src="http://speedtest-nyc1.digitalocean.com/"
Раньше он работал хорошо, но теперь я получаю Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure element 'http://speedtest-nyc1.digitalocean.com/'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html.
Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure element 'http://speedtest-nyc1.digitalocean.com/'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
Сайт не работает по HTTPS, поэтому запрос не выполнен К сожалению, я не являюсь владельцем стороннего домена или могу заставить их использовать HTTPS. Я также попытался AJAX, но он также завершился схожей ошибкой.
Как мне по-прежнему отправлять запрос на сервер, чтобы мой код работал?
Домен http://speedtest-nyc1.digitalocean.com является полным сайтом, а не изображением. Должен ли он быть загружен в iframe?
http://speedtest-nyc1.digitalocean.com