Answers for "419 error status"

14

error 418

Error 418 - I'm a teapot was an april fools joke that was made in 1998 & 2014 which was a part of the HTCPCP extension HTCPCP-TEA which was also a part of the april fools joke. Error 418 was eventually gonna get removed but then a movement started named "save 418" saying the internet would be somewhat incomplete without it and it succeded so now error code 418 has become a part of the official web. https://www.google.com/teapot
Posted by: Guest on February-02-2021
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