app-extension-qpdfviewer icon indicating copy to clipboard operation
app-extension-qpdfviewer copied to clipboard

Need a slot for request header

Open akash-melkeri opened this issue 2 years ago • 1 comments

I am using pdf bucket to host my pdfs (let's say 'bucket.com/myfile.pdf'). And access them from another website.(this will be 'front.com'). The problem here is my site 'bucket.com' only accepts requests which has token in the header. So, How can pass that token while using q-pdfviewer tag?

akash-melkeri avatar Nov 19 '22 15:11 akash-melkeri

Hi, you can create a normal ajax call with your headers. Then convert it to an object url = URL.createObjectURL(blob);

Here is an example: https://github.com/courajs/pdf-poc

Let me know when it works. BR

nucle avatar Nov 29 '22 07:11 nucle