I want to build a system with Laravel + angularJS.
I read I should use JWT auth http://ift.tt/1HfKA3v
But I need to use private images as well, I read the following solution: How to protect image from public view in Laravel 5?
But this solution is not JWT - AFAIK JWT will not work since the browser fetch images as a GET request.
My question is: Is it possible that upon login, Laravel will both:
- return a JWT token
- Set a cookie for using a protected Image controller (like in the above solution)
If not than what is the standard solution in such case?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire