I'm trying to figure out how to remove header from req object in express. I believe this res.disable("Header Name") removes it from res object, but same doesn't work for req.headers
That could be as simple as adding this middleware:
app.use(function(req, res, next) {
  delete req.headers['header-name']; // should be lowercase
  next();
});
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With