A
A
andreyv2016-05-29 17:31:10
JavaScript
andreyv, 2016-05-29 17:31:10

How to check if user is authorized in ajax request in laravel 5?

Friends, tell me, why is Auth::check()=false in the ajax request if the user is authorized?
If it matters, the backbone model is requesting the data, X-CSRF-TOKEN is set correctly.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arman, 2016-05-29
@Arik

If I'm not mistaken CSRF-TOKEN for other purposes, isn't there something like laravel_session?
I don’t know exactly when Ajax requests are made, cookies marked as http_only are also sent to the server?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question