CSRF令牌与laravel和pusher不匹配
我在laravel中实现了pusher,每天都会因为csrf令牌不匹配而出现几次错误。它来自具有以下内容的请求,并获得以下错误CSRF令牌与laravel和pusher不匹配,laravel,pusher,Laravel,Pusher,我在laravel中实现了pusher,每天都会因为csrf令牌不匹配而出现几次错误。它来自具有以下内容的请求,并获得以下错误 "path": "broadcasting/auth", "request": { "socket_id": "9057.89308", "channel_name": "private-App.
"path": "broadcasting/auth",
"request": {
"socket_id": "9057.89308",
"channel_name": "private-App.User.122"
},
"action": "\\Illuminate\\Broadcasting\\BroadcastController@authenticate"
下面的错误
"message": "CSRF token mismatch.",
"context": {
"errorLine": 84,
"errorFile": "/var/www/html/Customer_Interface/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php",
"error_catch_scope": "report",
"error_catch_file": "/var/www/html/Customer_Interface/app/Exceptions/Handler.php"
},
"level": 400,
"level_name": "ERROR"
它可能来自爬虫吗?它似乎只是来自用户,我看到其他日志中有确切的用户代理和该用户的用户名。如果我能找出如何过滤它,我想我会抑制这个错误。