I am working on a project where we need to add some custom headers to the HTTP requests for image, video and audio content in the browser. I\'ve been looking around and not rea
You want to use the browser's native capability of downloading and rendering your image, audio, and video requests. Easy solution: Use an , then when you want to download something, set the src to the URL of the image, audio, or video. For instance...
I went with a simple URL in this code snippet, and not an actual image, video, or audio file, since hotlinking is discouraged online.
By using an iframe, all of the browser's natural downloading and rendering elements will be available, plus, you can put the iframe anywhere in your app, giving you total control along with browser reliability.