This is my component.html
<iframe [src]="frameSrc | safe" class="frameSet" type="application/pdf"
frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen>
This browser does not support PDFs. Please download the PDF to view it:
<a href="frameSrc | safe">Download PDF</a>
</iframe>
When this component opens in my browser (Chrome), the pdf is downloaded instead of display. The frameSrc
is coming from a parent component which I'm assigning as the [src]
. I want to display the pdf instead of downloading. I did some research and found out the Content-Disposition
is attachment
in my browser default. How could I change this so this works on every browser?