Csrf token mismatch larvel 10 in a particular system

88 views Asked by At

My web application with larvel 10 has a form that submits using ajax. It’s working fine except for the one system, while submitting the form Im getting csrf token mismatch error in both chrome & edge browsers. Any solution will be of great help

Tried updating the browser to latest version, cleared cookies & cache but nothing worked

1

There are 1 answers

0
farz On

Ensure that the CSRF token is included in the request and sent with the correct parameter name. In Laravel, the CSRF token should be sent with the parameter name _token. Verify that your AJAX request includes this parameter.