I have multiple middlewares on my Express server. I want to set the same custom headers to all res.render
s. However, I don't want them to be sent with the res.send
s.
I found this answer. However, doing this will set headers to all responses sent by the server including both res.render
s and res.send
s.
Is there a way to affect all res.render
s without affecting res.send
s ?
Thank you!