Forbidden and invalid csrf token
-
I've try to changed the new theme and i get Forbidden in page when i was login.
1.I try to start the debug mode with ./nodebb log in console window, but i can't exit the log mode. How to exit node log mode?2 Get Error: invalid csrf token in log mode, How can i fix it by change the theme file.
3.How can i back to default theme now? I can't login.
Thanks! -
-
@madeonmac There is a missing comma. It should be
"hooks": [ { "hook": "filter:category.get", "method": "addPostData", "hook": "filter:widgets.getAreas", "method": "defineWidgetAreas", "callbacked": true } ],
Also callbacked is deprecated you can just remove it.
-
I got this error when didn't apply x-csrf-token header to the request. Is there any custom requests?
It should be done like this: https://github.com/NodeBB/NodeBB/blob/master/public/src/client/login.js#L28
Copyright © 2024 NodeBB | Contributors