Answers for "HTTP call status: 419"

0

HTTP call status: 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')
  }
});
Posted by: Guest on November-26-2020

Browse Popular Code Answers by Language