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

Impossible to retrieve private images and files from standard GET contents using the token auth #452

Closed
sneridagh opened this issue Nov 29, 2017 · 2 comments

Comments

@sneridagh
Copy link
Member

Given an standard GET content from a file or image, it returns a download property with the URL of the API server e.g.:

content-type: "image/jpeg",
"download": "https://server/the-image/@@images/image",
...

but accessing to the image by the browser itself throws a 401, since the resource should be accessed with the token header. You can workarround this by making the request via JS, but it feels highly cumbersome.

@buchi what do you think?

/cc @jaroel @tisto

@jaroel
Copy link
Member

jaroel commented Nov 29, 2017

Also see #148

@tisto
Copy link
Member

tisto commented Nov 30, 2017

Ok, let's re-open #148 and close this one. We will try to explore the react proxy option for our project.

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

3 participants