Description
I'm encountering a CSRF token mismatch error in my Laravel application, specifically in one project on my local machine. The error occurs consistently and prevents API requests from being processed, leading to exceptions across the application. Notably, no cookies, including the CSRF token and Laravel's default cookies, are being set in the browser.
Environment Details
Laravel Version: 8.83
PHP Version: 8.1.27
Steps Taken
- Verified the .env file for correctness.
- Checked and ensured proper permissions for the storage/framework/session and storage/framework/cache directories.
- Confirmed that system configurations match with the production environment.
Expected Behavior
The application should set the necessary cookies, including the CSRF token, and process API requests without encountering CSRF token mismatch errors.
Additional Notes
This issue is specific to my local machine and does not occur in the production environment or on other devices.
No recent changes were made to the codebase that could directly cause this issue.