crabbly / Print.js

A tiny javascript library to help printing from the web.
MIT License
4.28k stars 672 forks source link

Add setRequestHeader #622

Open xneceo opened 2 years ago

xneceo commented 2 years ago

Hey guys,

it would be a nice feature to add RequestHeaders for the document fetch. For example, when the PDF is generated by an API and this API needs Authorization to secure the access.

See: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/setRequestHeader

best regards Norbert

kameshpal commented 1 year ago

is this secure request header enabled yet?