If the Content-Disposition header has different information from the download attribute, resulting behavior may differ:.
The user may be prompted before a download starts, or the file may be saved automatically, or it may open automatically, either in an external application or in the browser itself. How browsers treat downloads varies by browser, user settings, and other factors.download only works for same-origin URLs, or the blob: and data: schemes.Allowing cross-origin use of images and canvas.HTML table advanced features and accessibility.From object to iframe - other embedding technologies.Assessment: Structuring a page of content.