invalid csrf token errors in log v0.6.1-dev

Bug Reports
  • Plugin & Theme Dev
    #1

    Don't know why but I keep seeing these errors in the log file.

    4/2 02:14 [12581] - error: /login
     Error: invalid csrf token
        at verifytoken (/path-to-nodebb/node_modules/csurf/index.js:237:11)
        at csrf (/path-to-nodebb/node_modules/csurf/index.js:100:7)
        at Layer.handle [as handle_request] (/path-to-nodebb/node_modules/express/lib/router/layer.js:82:5)
        at next (/path-to-nodebb/node_modules/express/lib/router/route.js:110:13)
        at Route.dispatch (/path-to-nodebb/node_modules/express/lib/router/route.js:91:3)
        at Layer.handle [as handle_request] (/path-to-nodebb/node_modules/express/lib/router/layer.js:82:5)
        at /path-to-nodebb/node_modules/express/lib/router/index.js:267:22
        at Function.proto.process_params (/path-to-nodebb/node_modules/express/lib/router/index.js:321:12)
        at next (/path-to-nodebb/node_modules/express/lib/router/index.js:261:10)
        at Function.proto.handle (/path-to-nodebb/node_modules/express/lib/router/index.js:166:3)
    4/2 02:46 [12581] - error: /register
     Error: invalid csrf token
        at verifytoken (/path-to-nodebb/node_modules/csurf/index.js:237:11)
        at csrf (/path-to-nodebb/node_modules/csurf/index.js:100:7)
        at Layer.handle [as handle_request] (/path-to-nodebb/node_modules/express/lib/router/layer.js:82:5)
        at next (/path-to-nodebb/node_modules/express/lib/router/route.js:110:13)
        at Route.dispatch (/path-to-nodebb/node_modules/express/lib/router/route.js:91:3)
        at Layer.handle [as handle_request] (/path-to-nodebb/node_modules/express/lib/router/layer.js:82:5)
        at /path-to-nodebb/node_modules/express/lib/router/index.js:267:22
        at Function.proto.process_params (/path-to-nodebb/node_modules/express/lib/router/index.js:321:12)
        at next (/path-to-nodebb/node_modules/express/lib/router/index.js:261:10)
        at Function.proto.handle (/path-to-nodebb/node_modules/express/lib/router/index.js:166:3)
    
  • #2

    Make sure your themes are latest and greatest. And any Plugins too. Run npm up in the nodebb folder to make sure.


Suggested Topics



  • 0 Votes
    1 Posts
    1202 Views

  • 0 Votes
    2 Posts
    1242 Views

  • 0 Votes
    7 Posts
    7019 Views

  • 0 Votes
    3 Posts
    1295 Views

| | | |