How to download a PDF from an iframe


In an ion-view, I included an iframe loading my frontend website and in that iframe, I have a button to download a PDF file generated by my java backend.

Directly from the frontend, I have no problem to download that file even if I have this kind of log in the console :

Resource interpreted as Document but transferred with MIME type application/pdf

But in my Ionic app, when I click on that button inside the iframe, I have the same log but I can’t download the PDF.

Am I missing something ?

1 Like

Did you find a solution?


Unfortunately no…