quasarframework / app-extension-qpdfviewer

View PDF documents in your Quasar app
https://quasarframework.github.io/app-extension-qpdfviewer
MIT License
104 stars 19 forks source link

Need a slot for request header #124

Open akash-melkeri opened 1 year ago

akash-melkeri commented 1 year ago

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?

nucle commented 1 year ago

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