app-extension-qpdfviewer
app-extension-qpdfviewer copied to clipboard
Need a slot for request header
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?
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