Describe the bug
When I use the X-XSRF TOKEN header, the VerifyCsrfToken middleware needs the encrypter that is injected into the parent (Illuminate\Foundation\Http\Middleware\VerifyCsrfToken) constructor. It was overwritten by the Statamic\Http\Middleware\VerifyCsrfToken constructor, but the injection is missing.
Expected behavior
The X-XSRF-TOKEN verification should work as expected.
This works:
Describe the bug When I use the X-XSRF TOKEN header, the VerifyCsrfToken middleware needs the encrypter that is injected into the parent (Illuminate\Foundation\Http\Middleware\VerifyCsrfToken) constructor. It was overwritten by the Statamic\Http\Middleware\VerifyCsrfToken constructor, but the injection is missing.
Expected behavior The X-XSRF-TOKEN verification should work as expected. This works:
Environment details (please complete the following information):