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 to Pass cookies with request for document src #10

Closed
EricBPower opened this issue Aug 31, 2016 · 2 comments
Closed

Need to Pass cookies with request for document src #10

EricBPower opened this issue Aug 31, 2016 · 2 comments
Assignees
Milestone

Comments

@EricBPower
Copy link

We have an authentication cookie that our API requires before returning a PDF response.
When trying to use our url in the src attribute the pdf viewer fails because it gets a 401 status code from the url. How can we send the current cookies with the request for the pdf?

In an object data attribute the cookies are automatically sent.
In http.get there is a withCredentials attribute that can be sent as true.
But what is the correct way to send cookies using pdf viewer?

@VadimDez VadimDez added this to the 0.0.11 milestone Sep 3, 2016
@VadimDez VadimDez self-assigned this Sep 3, 2016
@VadimDez
Copy link
Owner

VadimDez commented Sep 5, 2016

@EricBPower, i updated version and documentation as well, check it here

@EricBPower
Copy link
Author

@VadimDez, You rock! Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants