Reputation: 27
I have deployed a Laravel 11 application on AWS using Application Load Balancer (ALB) with Nginx as the web server. I’m using Redis for session and cache management. The application is built with Laravel Jetstream for user authentication. However, users are frequently encountering the following error when performing authenticated actions:
Illuminate\Session\TokenMismatchException: CSRF token mismatch.
What I Have Tried
Problem Despite these measures, the CSRF token mismatch error persists intermittently for some users. This occurs particularly when accessing forms or submitting data. It seems related to session handling or request routing by the load balancer.
Questions
Any insights or suggestions are appreciated. Let me know if more details are needed!
Upvotes: 0
Views: 52