Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a slot for request header #124

Open
akash-melkeri opened this issue Nov 19, 2022 · 1 comment
Open

Need a slot for request header #124

akash-melkeri opened this issue Nov 19, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@akash-melkeri
Copy link

akash-melkeri commented Nov 19, 2022

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
Copy link

nucle commented Nov 29, 2022

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 nucle added the help wanted Extra attention is needed label Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants