1 個回答
- 最新
- 最多得票
- 最多評論
0
As I understand, Laravel CSRF "token" is stored in user session.
Where are you storing your session data? If this is files, you will need to change it to an external shared data store. This can be database, dynamodb, redis/memcache (Elasticache). It will allow all your instances access to session data.
As a workaround, you can enable ALB sticky sessions. However, it will have some impact on scalability as web requests are not evenly distributed across all your instances.
相關內容
已提問 3 年前
