I have an api response which contains the amazon aws pdf link. Whenever I try to render that pdf in an iframe it gets downloaded and nothing renders inside the iframe. I don't want to use any external library like ng2-pdf-viewer.
Here is my code snippet.
<iframe [src]="pdfPreviewURL" type="application/pdf"></iframe>
Here pdfPreviewURL is the response pdf aws pdf file link.
Thanks in advance. All suggestions are welcomed.