laravel-debugbar icon indicating copy to clipboard operation
laravel-debugbar copied to clipboard

Fix `CSRF token mismatch.` on cache forget

Open erikn69 opened this issue 5 months ago • 0 comments

If you add ['web'] middleware on debugbar.route_middleware, the cache forget action gets CSRF token mismatch. exception Also others middleware could validate delete route, this route is not deleting anything itself, it just forgets the cache.

image

Other option is adding `CSRF to header laravel/echo/src/connector/connector.ts#L60-L79

erikn69 avatar Mar 05 '24 18:03 erikn69