Drip not working (no cookie attached) with route caching
unconfirmed bug
## Expected Behavior
The XSRF-TOKEN should be attached to the response when calling the drip endpoint.
## Actual Behavior
No cookies are attached to the drip response when route caching is enabled. This is due to the fact that the drip route is not linked with the ‘web’ middleware group which add the cookie via the VerifyCRSF middleware. I think this is caused by the way the route are added in the ServiceProvider which is not compatible with route caching. Desactivating route caching in production solves the issue
## Environment
- PHP Version: 8.2
- Laravel Version: 10.48.12
- LaravelCaffeine Version: 10.0.2
## Stack Trace
关闭于 2025-03-12 2 条评论