Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

359
Views
CSRF Token mismatch on Ajax Form on change submission

I have a public form where it sends Ajax request on jquery onchange event, sometimes due to the number of requests sent in the time interval I'm starting to get TokenMismatchException.

I'm using the following way to send the csrf token:

$.ajaxSetup({ 

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

});

What would be the solution to my situation? Extending the csrf token lifetime? Thoughts?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

If the call is not manipulating any sensitive information, put the route in except array in VerifyCsrfToken class.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!