Download Private Blob Image using Proxy?
<p>I currently access images on my website through a <strong>public</strong> blob url:</p>

<pre><code>https://subscription_name.blob.core.windows.net/users/5/drivers_licence.jpg
</code></pre>

<p>I want to change the blob access from public to <strong>private</strong> and aceess the url as:</p>

<pre><code>http://localhost:3000/users/5/drivers_licence.jpg
</code></pre>

<p>The Blob Url is stored and pulled from the database so I can run a query to update all records with the new prefix (localhost one), that's the easy bit.</p>

<p>The question is: how can I implement the Proxy so that when I click the download link, it opens up the document in a blank page with the new localhost url?</p>

<p>The localhost is just for testing purposes. I will eventually replace this with my domain name:</p>

<pre><code>https://website-name.com/users/5/drivers_licence.jpg
</code></pre>

<p><strong>Later Edit</strong> I figured it out, I posted the solution as an answer below</p>