"ForbiddenError: invalid csrf token" On Fresh Install
-
I do!
Uncaught SyntaxError: Unexpected token &
nodebb.min.js?0eb3d036:14Uncaught TypeError: Cannot read property 'maxReconnectionAttempts' of undefined
socketIOConnect @ nodebb.min.js?1431043735683:18915
(anonymous function) @ nodebb.min.js?1431043735683:19495
(anonymous function) @ nodebb.min.js?1431043735683:19509Uncaught TypeError: Cannot read property 'loggedIn' of undefined
(anonymous function) @ nodebb.min.js?1431043735683:19260
jQuery.Callbacks.fire @ nodebb.min.js?1431043735683:3087
jQuery.Callbacks.self.fireWith @ nodebb.min.js?1431043735683:3199
jQuery.extend.ready @ nodebb.min.js?1431043735683:433
completed @ nodebb.min.js?1431043735683:104 -
-
You have problem with minification of the scripts.
I can encounter this problem several times on day. Until I have found way how to fix it, it was a painTemporal solution
- Stop Nodebb
- Enter
nodebb/public
directory - Delete
src
directory, -rm -rf src
- Checkout
src
directory -git checkout .
- Start Nodebb
-
@julian I have found source of the issue.
Minification script does not ignore hidden files, like .DS_Store.Reproduce
Visit
public/src
folder, open several files, usefinder
on Mac. Check if you have .DS_Store files in subdirectories ofpublic/src
. Now when you restart NodeBB, minified script will be broken with different artefacts.Solution
Minification script should include only
*.js
files.Temporal Solution 2 for Mac Users
- Enter
public/src
directory. - Delete all .DS_STORE recursively -
find . -name '*.DS_Store' -type f -delete
- Enter
-
@Nicolas Nice catch this should be fixed on master now.
Commits ยท NodeBB/NodeBB
Node.js based forum software built for the modern web - Commits ยท NodeBB/NodeBB
GitHub (github.com)
-
What I did was, I installed the lobby app. Some feature are working but most them are not. Like when I tried to change the app setting in admin configuration, I got this Error.
orbiddenError: invalid csrf token
at verifytoken (/home/maycel.casilag/Lobby-App-master/node_modules/express/node_modules/connect/node_modules/csurf/index.js:269:11)
at Object.csrf [as handle] (/home/maycel.casilag/Lobby-App-master/node_modules/express/node_modules/connect/node_modules/csurf/index.js:97:7)
at next (/home/maycel.casilag/Lobby-App-master/node_modules/express/node_modules/connect/lib/proto.js:174:15)
at methodOverride (/home/maycel.casilag/Lobby-App-master/node_modules/express/node_modules/connect/node_modules/method-override/index.js:79:5)
at /home/maycel.casilag/Lobby-App-master/node_modules/express/node_modules/connect/lib/middleware/methodOverride.js:41:7
at methodOverride (/home/maycel.casilag/Lobby-App-master/node_modules/express/node_modules/connect/node_modules/method-override/index.js:79:5)
at Object.handle (/home/maycel.casilag/Lobby-App-master/node_modules/express/node_modules/connect/lib/middleware/methodOverride.js:39:5)
at next (/home/maycel.casilag/Lobby-App-master/node_modules/express/node_modules/connect/lib/proto.js:174:15)
at /home/maycel.casilag/Lobby-App-master/node_modules/express/node_modules/connect/node_modules/express-session/index.js:433:7
at /home/maycel.casilag/Lobby-App-master/sqlite-store.js:65:15Please help me because I'm stuck.
Thank You!
POST /docusign_test 403 19.811 ms - -