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