I'm trying to make a download button for an image using the following code:
<a href="https://media.npr.org/assets/img/2017/09/14/gettyimages-10141026_slide-67be9fc1bca330b26debade87690b5e84286614d-s800-c85.jpg" class="btn btn-outline-success btn-sm" target="_blank" download>Download</a>
However, when the button is clicked, it redirects to a page with the image on it instead of downloading the image. I've searched for solution for this problem here. The answer said that it's probably because I'm using a cross-domain URL, and to fix this I need to host the image on the same domain as the parent site. But I don't know what the answer means. Can someone help me fix this problem? Appreciate your help!
By the way, I'm using Google Chrome as the browser.