I am sending an AJAX post request back to my Laravel API and receiving this error messsage:
DecryptException in compiled.php line 13235: The payload is invalid.
I am reading the XSRF-TOKEN from the cookie and sending that along as a request header named X-XSRF-TOKEN.
The site is a completely seperate site from the Laravel API but shares the same session, which is why I am getting the value from a cookie.
The strange thing is, occasionally it works. Any ideas what is causing this?