document-viewer icon indicating copy to clipboard operation
document-viewer copied to clipboard

Adding header value to document request

Open john-parker57 opened this issue 2 years ago • 1 comments

Hello, when using the mammoth viewer to display a .docx document is it possible to add a header value to the request made (e.g. an Authorization header)?

<ngx-doc-viewer [url]="docurl" viewer="mammoth" style="width: 100%; height: 50vh">

john-parker57 avatar Jul 30 '22 10:07 john-parker57

Sorry for the late response, that would actually be a great additions. Maybe passing a function to override the build-in http request would be even better. When I have time, I'll add it, a PR is welcome too.

Marcelh1983 avatar Dec 14 '22 14:12 Marcelh1983