419 Page Expired
Non-standard · laravel
Laravel: the page or CSRF token has expired (session timed out or the form was open too long).
Common causes
- The CSRF token in the form no longer matches the session (session expired, page left open for a long time)
- Cookies were blocked or cleared, or the session cookie domain / HTTPS setting is wrong
- AJAX / fetch requests sent without the X-CSRF-TOKEN header
How to fix
- Reload the page to get a new token, then submit again
- Add @csrf to every POST form; send the token in the X-CSRF-TOKEN header for AJAX
- Check SESSION_LIFETIME, SESSION_DOMAIN and SESSION_SECURE_COOKIE; only exclude routes (e.g. webhooks) from CSRF on purpose
