Error: invalid csrf token[resolved]
-
-
@vatsal more context...It is happening while I am trying to upload the image through nodebb-plugin-imgur https://github.com/barisusakli/nodebb-plugin-imgur. As soon as I hit the "open" button from my browser file picker, I get this error inside my nodejs console log: (running in dev mode)
Error: invalid csrf token at verifytoken (/Users/vats/Project/dealstan/forum/NodeBB/node_modules/csurf/index.js:234:13) at csrf (/Users/vats/Project/dealstan/forum/NodeBB/node_modules/csurf/index.js:94:7) at Layer.handle [as handle_request] (/Users/vats/Project/dealstan/forum/NodeBB/node_modules/express/lib/router/layer.js:76:5) at next (/Users/vats/Project/dealstan/forum/NodeBB/node_modules/express/lib/router/route.js:100:13) at Route.dispatch (/Users/vats/Project/dealstan/forum/NodeBB/node_modules/express/lib/router/route.js:81:3) at Layer.handle [as handle_request] (/Users/vats/Project/dealstan/forum/NodeBB/node_modules/express/lib/router/layer.js:76:5) at /Users/vats/Project/dealstan/forum/NodeBB/node_modules/express/lib/router/index.js:234:24 at Function.proto.process_params (/Users/vats/Project/dealstan/forum/NodeBB/node_modules/express/lib/router/index.js:312:12) at /Users/vats/Project/dealstan/forum/NodeBB/node_modules/express/lib/router/index.js:228:12 at Function.match_layer (/Users/vats/Project/dealstan/forum/NodeBB/node_modules/express/lib/router/index.js:295:3)
-
@ffmad, this is part of the reason it's never a good idea to run dev builds in production. You should pull from the v0.5.x branch.
Copyright © 2024 NodeBB | Contributors