nodeclub icon indicating copy to clipboard operation
nodeclub copied to clipboard

ForbiddenError: invalid csrf token

Open tsuibin opened this issue 8 years ago • 0 comments

早上的时候nodeclub崩溃了,检查日志发现出现这个错误,这是什么原因引起的?

[2017-02-04 05:04:34.778] [ERROR] cheese - { ForbiddenError: invalid csrf token at verifytoken (/root/cnode/nodeclub/node_modules/csurf/index.js:269:11) at csrf (/root/cnode/nodeclub/node_modules/csurf/index.js:97:7) at /root/cnode/nodeclub/app.js:126:14 at Layer.handle [as handle_request] (/root/cnode/nodeclub/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/root/cnode/nodeclub/node_modules/express/lib/router/index.js:312:13) at /root/cnode/nodeclub/node_modules/express/lib/router/index.js:280:7 at Function.process_params (/root/cnode/nodeclub/node_modules/express/lib/router/index.js:330:12) at next (/root/cnode/nodeclub/node_modules/express/lib/router/index.js:271:10) at /root/cnode/nodeclub/middlewares/auth.js:43:5 at Layer.handle [as handle_request] (/root/cnode/nodeclub/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/root/cnode/nodeclub/node_modules/express/lib/router/index.js:312:13) at /root/cnode/nodeclub/node_modules/express/lib/router/index.js:280:7 at Function.process_params (/root/cnode/nodeclub/node_modules/express/lib/router/index.js:330:12) at next (/root/cnode/nodeclub/node_modules/express/lib/router/index.js:271:10) at exports.authUser (/root/cnode/nodeclub/middlewares/auth.js:99:14) at Layer.handle [as handle_request] (/root/cnode/nodeclub/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/root/cnode/nodeclub/node_modules/express/lib/router/index.js:312:13) at /root/cnode/nodeclub/node_modules/express/lib/router/index.js:280:7 at Function.process_params (/root/cnode/nodeclub/node_modules/express/lib/router/index.js:330:12) at next (/root/cnode/nodeclub/node_modules/express/lib/router/index.js:271:10) at initialize (/root/cnode/nodeclub/node_modules/passport/lib/middleware/initialize.js:53:5) at Layer.handle [as handle_request] (/root/cnode/nodeclub/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/root/cnode/nodeclub/node_modules/express/lib/router/index.js:312:13) at /root/cnode/nodeclub/node_modules/express/lib/router/index.js:280:7 at Function.process_params (/root/cnode/nodeclub/node_modules/express/lib/router/index.js:330:12) at next (/root/cnode/nodeclub/node_modules/express/lib/router/index.js:271:10) at session (/root/cnode/nodeclub/node_modules/express-session/index.js:402:7)

tsuibin avatar Feb 04 '17 04:02 tsuibin