Error with the token, Larabel?

Lord, tell me. What can be the matter? Larval has error - TokenMismatchException in VerifyCsrfToken.php line 67. At the same session exists, the user is authorized
July 12th 19 at 16:59
5 answers
July 12th 19 at 17:01
https://learn.javascript.ru/csrf

You need every non-GET request to pass the secret token.
I have not the form but the ajax request, get/post - grayce_Wiso commented on July 12th 19 at 17:04
: what's the difference ? This is a request. Request it and in Africa the request. You need to add the output of a token somewhere in the meta tag and when you post an ajax request to add the token in the request body. - Darius.Hammes commented on July 12th 19 at 17:07
July 12th 19 at 17:03
In the form of a paste input with csrf token:
{!! csrf_field() !!}
I have not the form but the ajax request, get/post - grayce_Wiso commented on July 12th 19 at 17:06
: https://laravel.com/docs/master/routing#csrf-x-csr... - Darius.Hammes commented on July 12th 19 at 17:09
July 12th 19 at 17:05
July 12th 19 at 17:07
Murky topic ))))
There are many different work options (up to configure the correct time zone!)
Here's proof: laravel.io/forum/01-30-2015-laravel5-tokenmismatch...
July 12th 19 at 17:09
I was poking around in Google and found the only solution needed.

<meta name="csrf-token" content="{{ csrf_token() }}">

headers: {
 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
 },

Find more questions by tags LaraveljQuery