If you have nginx or some other reverse proxy in front of NodeBB, you can use that to set the response header.
How to get username on a static page?
I used this example to make a page and wanted to display the username on the page. How do I do that?
app.username. If you wanted to pass that in from the server side, use
req.user.uidto call user.getUserFields to pull the username (check out src/routes/user.js line 323-341 for an example)
what are you building?
I had a slight typo. I had req.user.id