Answer the question
In order to leave comments, you need to log in
How to make authentication for individual AJAX requests in Laravel?
Hello!
There is a situation: a classic web application in which individual Vue components are implemented. Some Vue components send AJAX requests that must be authorized. How to implement simple user authentication for these requests (without JWT, Paasport and others).
The default request contains the following headers:
Cookie: XSRF-TOKEN=XXXX; project_name_session=XXXX
X-CSRF-TOKEN: XXX
XSRF-TOKEN: XXXX
Answer the question
In order to leave comments, you need to log in
Use standard browser authentication - send cookies along with requests.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question