lucaspulliese / vue-cool-lightbox

Vue.js lightbox inspired by fancybox.
https://vue-cool-lightbox.lucaspulliese.com
341 stars 54 forks source link

Image resource protected by Bearer auth. #54

Closed uwejan closed 4 years ago

uwejan commented 4 years ago

I was wondering if there was a way to load an image that is protected by auth headers. auth type Bearer token.

lucaspulliese commented 4 years ago

Hi @uwejan!

The best approach for solve something like this I think is using signed URL as this post says.

uwejan commented 4 years ago

Hi, @lucaspulliese I saw that on my search before posting did not know you will link to it. This approach will add more work on server and client. you will need to create a guid and verfiy it, plus store on client side. While i already have the token for all other works. If you can not think of anything else, feel free to close it. Thanks.

lucaspulliese commented 4 years ago

@uwejan sorry, I couldn't find another solution, I will close this issue.