'Chrome "Download Pdfs" setting disables <object> PDF document

We have some users that make use of the "Download PDFs" setting in Chrome. They do not want to disable it and it blocks them from viewing PDFs on our site.

enter image description here

Is there a way around this to still show PDFs? Or a better cross-browser alternative that would still work if this setting is enabled? It does not give them the option to download the PDF either.

I am using the <object> HTML element to show the PDF as below

<object type="application/pdf"
    data="someUrl.pdf"
    width="250"
    height="200">
</object>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source