`Missing or incorrect CSRF cookie type` error
Closed this issue · 0 comments
stefanorosanelli commented
Upon a fresh deploy or new setup on the first login access we get this annoying error
To reproduce locally: remove the csrfToken
cookie and perform login.
Error log excerpt:
error: [Cake\Http\Exception\InvalidCsrfTokenException] Missing or incorrect CSRF cookie type. in vendor/cakephp/cakephp/src/Http/Middleware/CsrfProtectionMiddleware.php on line 390
Stack Trace:
- vendor/cakephp/cakephp/src/Http/Middleware/CsrfProtectionMiddleware.php:170
- ...
-
Request URL: /login
Referer URL: https://{manager-url}/login