2 thoughts on “can i change X-Powered-By:Express?

  1. How about this?

    var express = require('express');
    var app = express();
    
    app.disable('x-powered-by');
    // or
    app.set('x-powered-by', '....');
  2. You can do it just by using the code:

    app.use(function (req, res, next) {
      res.setHeader('X-Powered-By', 'Rainbows')
      next()
    })

Comments are closed.