the answer is in this topic :
https://community.nodebb.org/topic/11906/add-a-class-to-the-body-if-the-template-is-404/3
Alterate http reponse header
-
Hello,
I need to replace the response header REMOTE_ADDR but i don't find any suitable hook.
filter:middleware.buildHeader or renderHeader are good to change head content (meta, script...)
Where is the best place i could use res.setHeader(key, headers) ? -
Can you explain why you want to do this?
-
Shooting from the hip: I would look at rewriting proxy side, e.g. Nginx proxy_set_header.