Answers for "what is 419 (unknown status) laravel"

PHP
1

419 unknown status

//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')
    }
});
Posted by: Guest on August-23-2021
0

Laravel 419 error

$this->renderable(function (\Exception $e) {
    if ($e->getPrevious() instanceof \Illuminate\Session\TokenMismatchException) {
        return redirect()->route('login');
    };
});
Posted by: Guest on August-12-2021

Browse Popular Code Answers by Language