是否已使用调试模式尝试排错?
是
问题描述:
登陆后报告400 Bad request
报错内容:
`POST http://t.biscuitcube.top/login
Flarum\Http\Exception\TokenMismatchException: CSRF token did not match in file D:\Programs\phpStudy\AFlarumServ\vendor\flarum\core\src\Http\Middleware\CheckCsrfToken.php on line 48
Stack trace:
- Flarum\Http\Exception\TokenMismatchException->() D:\Programs\phpStudy\AFlarumServ\vendor\flarum\core\src\Http\Middleware\CheckCsrfToken.php:48
- Flarum\Http\Middleware\CheckCsrfToken->process() D:\Programs\phpStudy\AFlarumServ\vendor\laminas\laminas-stratigility\src\Next.php:61
- Laminas\Stratigility\Next->handle() D:\Programs\phpStudy\AFlarumServ\vendor\flarum\core\src\Http\Middleware\AuthenticateWithSession.php:32
- Flarum\Http\Middleware\AuthenticateWithSession->process() D:\Programs\phpStudy\AFlarumServ\vendor\laminas\laminas-stratigility\src\Next.php:61
- Laminas\Stratigility\Next->handle() D:\Programs\phpStudy\AFlarumServ\vendor\flarum\core\src\Http\Middleware\RememberFromCookie.php:51
- Flarum\Http\Middleware\RememberFromCookie->process() D:\Programs\phpStudy\AFlarumServ\vendor\laminas\laminas-stratigility\src\Next.php:61
- Laminas\Stratigility\Next->handle() D:\Programs\phpStudy\AFlarumServ\vendor\flarum\core\src\Http\Middleware\StartSession.php:61
- Flarum\Http\Middleware\StartSession->process() D:\Programs\phpStudy\AFlarumServ\vendor\laminas\laminas-stratigility\src\Next.php:61
- Laminas\Stratigility\Next->handle() D:\Programs\phpStudy\AFlarumServ\vendor\flarum\core\src\Http\Middleware\CollectGarbage.php:46
- Flarum\Http\Middleware\CollectGarbage->process() D:\Programs\phpStudy\AFlarumServ\vendor\laminas\laminas-stratigility\src\Next.php:61
- Laminas\Stratigility\Next->handle() D:\Programs\phpStudy\AFlarumServ\vendor\flarum\core\src\Http\Middleware\ParseJsonBody.php:28
- Flarum\Http\Middleware\ParseJsonBody->process() D:\Programs\phpStudy\AFlarumServ\vendor\laminas\laminas-stratigility\src\Next.php:61
- Laminas\Stratigility\Next->handle() D:\Programs\phpStudy\AFlarumServ\vendor\flarum\core\src\Http\Middleware\HandleErrors.php:57
- Flarum\Http\Middleware\HandleErrors->process() D:\Programs\phpStudy\AFlarumServ\vendor\laminas\laminas-stratigility\src\Next.php:61
- Laminas\Stratigility\Next->handle() D:\Programs\phpStudy\AFlarumServ\vendor\laminas\laminas-stratigility\src\MiddlewarePipe.php:84
- Laminas\Stratigility\MiddlewarePipe->process() D:\Programs\phpStudy\AFlarumServ\vendor\middlewares\request-handler\src\RequestHandler.php:84
- Middlewares\RequestHandler->process() D:\Programs\phpStudy\AFlarumServ\vendor\laminas\laminas-stratigility\src\Next.php:61
- Laminas\Stratigility\Next->handle() D:\Programs\phpStudy\AFlarumServ\vendor\middlewares\base-path-router\src\BasePathRouter.php:97
- Middlewares\BasePathRouter->process() D:\Programs\phpStudy\AFlarumServ\vendor\laminas\laminas-stratigility\src\Next.php:61
- Laminas\Stratigility\Next->handle() D:\Programs\phpStudy\AFlarumServ\vendor\laminas\laminas-stratigility\src\Middleware\OriginalMessages.php:42
- Laminas\Stratigility\Middleware\OriginalMessages->process() D:\Programs\phpStudy\AFlarumServ\vendor\laminas\laminas-stratigility\src\Next.php:61
- Laminas\Stratigility\Next->handle() D:\Programs\phpStudy\AFlarumServ\vendor\middlewares\base-path\src\BasePath.php:53
- Middlewares\BasePath->process() D:\Programs\phpStudy\AFlarumServ\vendor\laminas\laminas-stratigility\src\Next.php:61
- Laminas\Stratigility\Next->handle() D:\Programs\phpStudy\AFlarumServ\vendor\laminas\laminas-stratigility\src\MiddlewarePipe.php:84
- Laminas\Stratigility\MiddlewarePipe->process() D:\Programs\phpStudy\AFlarumServ\vendor\laminas\laminas-stratigility\src\MiddlewarePipe.php:73
- Laminas\Stratigility\MiddlewarePipe->handle() D:\Programs\phpStudy\AFlarumServ\vendor\laminas\laminas-httphandlerrunner\src\RequestHandlerRunner.php:96
- Laminas\HttpHandlerRunner\RequestHandlerRunner->run() D:\Programs\phpStudy\AFlarumServ\vendor\flarum\core\src\Http\Server.php:42
- Flarum\Http\Server->listen() D:\Programs\phpStudy\AFlarumServ\public\index.php:26`
已尝试的解决办法:
无
网址: