Unfortunately we are serving many different file types.
Please do open up a feature request to set JWT Bearer Authorization headers for the proxyURL in saveAs.
We've worked around this for now using a separate library, but saveAs would be much cleaner.
Thanks!
Hello, Spencer,
If this is for PDF files, I can suggest the following approach.
Convert the file to a Base64 string and programmatically make the request with the generated string with a library like axios:
https://www.telerik.com/kendo-react-ui/components/pdfprocessing/base64string/
https://stackoverflow.com/questions/51586458/how-to-pass-header-jwt-token-with-axios-react/51588921
Also, if you wish I can convert this to a public feature request, where the community can vote for this feature to be added to the saveAs method.
Regards,
Stefan
Progress Telerik