419 | Page Expired (CSRF token expired) #9982
Replies: 2 comments 10 replies
-
I've moved this into a discussion since it's likely a configuration issue, rather than a bug in Statamic itself. Can you try switching the session driver to |
Beta Was this translation helpful? Give feedback.
-
I'm seeing this happen too when using full measure static caching. I am a blade developer. Could this be a blade thing? I tried moving my csrf tag to the I also tried doing a replacement with custom javascript, but the page has already expired by the time the script runs. The only thing that works is to exclude 'livewire/*' in the VerifyCsrfToken Middleware, which I don't like doing. |
Beta Was this translation helpful? Give feedback.
-
Bug description
When I try to login using Chrome, I see a
419 | Page Expired
page. If I press back, I'm logged in?On my staging site (https) I'm using
STATAMIC_STATIC_CACHING_STRATEGY=half
.Someone in Discord suggested using
SESSION_SECURE_COOKIE=true
which I've done.I've cleared the browser cache, and done a hard reload.
But it keeps on showing a 419 | Page Expired message.
It also happens on local (valet) http site. Not using
SESSION_SECURE_COOKIE=true
locally.How to reproduce
I think the issue is local to my browser,
as it's not a problem when using incognito mode or Edge. It's happening in all browsers and in incognito mode in Chrome.Just wondering why this would be happening?
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
Runtime (default)
Additional details
No response
Beta Was this translation helpful? Give feedback.
All reactions