Chromecast integration (Cast) returns image url starting with “http://” which creates mixed content wornings in modern browsers:
" 1. Mixed content: load all resources via HTTPS to improve the security of your site
- Even though the initial HTML page is loaded over a secure HTTPS connection, some resources like images, stylesheets or scripts are being accessed over an insecure HTTP connection. Usage of insecure resources is restricted to strengthen the security of your entire site.
To resolve this issue load all resources over a secure HTTPS connection."
We can easely change adress to “https://” prefix and it will continue to work:
code can be changed from:
return images.url if images and images.url else None
return images.replace(“http://”,“https://”).url if images and images.url else None