I have a laravel application which outputs the token in a field on every page. Then jquery loads the token to every ajax request, as answered here: Laravel 5 CSRF global token hidden field for all forms in a page
But every once in a while, I get TokenMismatch Exceptions on ajax calls.. sometimes it happens when the website is idle for too long, and sometimes it's just apparently random.
Any ideas on how to debug this? What may be causing this, or possible solutions?