Closed robdekort closed 6 months ago
I've opened a PR to fix the issue which should hopefully be released soon. In the meantime, you can add this to your bootstrap/app.php
file:
->withMiddleware(function (Middleware $middleware) {
$middleware->validateCsrfTokens(except: [
'!/nocache',
]);
})
Amazing. Thanks for this. The workaround works.
Bug description
On two v5 sites where I use the
nocache
tag I get 419 console errors on the/!/nocache
route. This leads to the content not being rendered on production sites.How to reproduce
Use nocache with static caching
Logs
No response
Environment
Installation
Starter Kit using via CLI
Additional details
No response