pdfy icon indicating copy to clipboard operation
pdfy copied to clipboard

Adding custom headers to request

Open lucaselvaggio opened this issue 2 years ago • 1 comments

It may be possible to modify the downloadPdf() function of the PdfDownloader class in such a way as to have the possibility of adding a parameter that allows adding one or more headers to the request? Thus obtaining the possibility of downloading from end-points that are protected by the authorization of the Bearer Token.

lucaselvaggio avatar Oct 25 '23 13:10 lucaselvaggio

It may be possible to modify the downloadPdf() function of the PdfDownloader class in such a way as to have the possibility of adding a parameter that allows adding one or more headers to the request? Thus obtaining the possibility of downloading from end-points that are protected by the authorization of the Bearer Token.

Yes, that sounds pretty easy to do. Would love to see a PR 👍

boldijar avatar Feb 27 '24 09:02 boldijar