社区的403报错也太详细了吧
发布于 1年前 作者 mmillet 535 次浏览

刚在退出登录时,响应了403错误,但是错误信息里包含了很多后台路径。

这里是重现方法: 1、登录 2、打开firebug - 网络 3、页面右上角,点击退出 4、在firebug - 网络中重新发送/signout请求

下面是响应的部分内容:

_method=post&_csrf=MsdHCW15DVoGXFOGJaNbQk%2FogEpqmiElcpmiM%3D
HTTP/1.1 403 Forbidden
Server: nginx/1.1.19
Date: Mon, 26 May 2014 02:46:49 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: Express
Vary: Accept-Encoding
X-Response-Time: 6ms

1f86
Error: invalid csrf token
  at createToken (/home/ubuntu/nodeclub/node_modules/csurf/index.js:77:19)
  at Layer.<anonymous> (/home/ubuntu/nodeclub/node_modules/csurf/index.js:51:24)
  at Layer.eval [as handle] (<anonymous>:10:14)
  at trim_prefix (/home/ubuntu/nodeclub/node_modules/express/lib/router/index.js:230:15)
  at c (/home/ubuntu/nodeclub/node_modules/express/lib/router/index.js:198:9)
  at Function.proto.process_params (/home/ubuntu/nodeclub/node_modules/express/lib/router/index.js:
......
回到顶部