“419 неизвестный статус” Ответ

419 неизвестный статус

//It's an error of csrf token, there is multiples ways to fix it, too much to 
//write a grepper answer on.

//419 : error of csrf token

//Common way to fix it, try this
$.ajaxSetup({
    headers: {
        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
    }
});
L'homme habile

HTTP Статус вызова: 419

Use this in the head section:

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

and get the csrf token in ajax:
$.ajaxSetup({
  headers: {
    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  }
});
Lokesh003Coding

Ответы похожие на “419 неизвестный статус”

Вопросы похожие на “419 неизвестный статус”

Больше похожих ответов на “419 неизвестный статус” по PHP

Смотреть популярные ответы по языку

Смотреть другие языки программирования