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