D
D
dskozin2018-10-05 10:21:55
Laravel
dskozin, 2018-10-05 10:21:55

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

1 answer(s)
A
Alexey Ukolov, 2018-10-05
@dskozin

Use standard browser authentication - send cookies along with requests.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question