79633415

Date: 2025-05-22 09:05:40
Score: 1
Natty:
Report link

The Laravel's documentation clearly states the use of CSRF Token in the Ajax Request.

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

Please do note that you will have to update the token with each request if you are regenerating the tokens.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Manhar Sharma