Marcelh1983 / document-viewer

MIT License
51 stars 29 forks source link

Adding header value to document request #48

Open john-parker57 opened 2 years ago

john-parker57 commented 2 years ago

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">

Marcelh1983 commented 1 year ago

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.