Hello,
I'm sorry if this is redundant or not the place to ask, I don't consider myself a good code writer and I'm always worried about logic, best practices and stuff like that which could improve my skills.
My case is that I've been working in some web projects (no mobile app or clients, just web). I like the built in API route setup in Laravel, but these projects are only web and the only client would be the VueJS front end in the same project, so I don't see the need of setting up Passport.
I decided to go with normal web routes acting as API routes (which are consumed by VueJS components), using auth middleware in those routes.
My primary question is that one in the title: is this auth middleware safe for AJAX (axios) requests?
Then the secondary question would be: do you consider Passport a must-to in these cases?
I appreciate your opinions in this matter.
Sorry if this is not the place and in that case I would appreciate you point me in the right direction.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community