I have a website running on https
.
I have to load images from external server (external domain) which doesn't have https, but single http
protocol.
Is there's any way to handle proxy for http
images via PHP or Node? So I can render images like this:
<img src="https://domain.com/proxy?url=http://externaldomain.com/image.jpg" />
The idea is to avoid saving images on local, but only display them.
When I try to render http
served images inside https
domain, I get this console message:
The page at https://domain.com/ displayed insecure content from http://externaldomain.com/image.jpg.
As well, my SSL (/https) lock icon inside address bar becomes grey.