Currently, should you want to show a PDF behind an authenticated path, you must fetch() it with crossOrigin: 'use-credentials', then create a blob for it.
While this works - it would be much easier if the library externalized some arguments (In this case, use credentials) of its internal fetch.
For comparison - react-pdf has it with the document option WithCredentials: true or httpHeaders
Currently, should you want to show a PDF behind an authenticated path, you must
fetch()it with crossOrigin: 'use-credentials', then create a blob for it.While this works - it would be much easier if the library externalized some arguments (In this case, use credentials) of its internal fetch.
For comparison - react-pdf has it with the document option
WithCredentials: trueorhttpHeaders