In Express >= 3.0.0rc5:
app.disable('x-powered-by');
Here is a simple middleware that removes the header in earlier versions of Express:
app.use(function (req, res, next) {
res.removeHeader("x-powered-by");
next();
});
More Related Contents:
- Client on Node.js: Uncaught ReferenceError: require is not defined
- How to access POST form fields in Express
- Error: request entity too large
- Node.js global variables
- Render basic HTML view?
- Using socket.io in Express 4 and express-generator’s /bin/www
- How do I remove documents using Node.js Mongoose?
- Rest with Express.js nested router
- What is NODE_ENV and how to use it in Express?
- TypeError: Router.use() requires middleware function but got a Object
- How to convert CSV to JSON in Node.js
- SyntaxError: expected expression, got ‘
- using AngularJS html5mode with nodeJS and Express
- TypeScript import/as vs import/require? [duplicate]
- Running multiple Node (Express) apps on same port
- How to send flash messages in Express 4.0?
- Node + Express with static HTML. How to route all requests to index.html?
- res.sendfile in Node Express with passing data along
- How to get updated document back from the findOneAndUpdate method?
- Loop through asynchronous request
- Can I determine if a string is a MongoDB ObjectID?
- Running Node.js in apache?
- Node.js / Express.js – How to override/intercept res.render function?
- Does every object in JS have a toString() method?
- MissingSchemaError: Schema hasn’t been registered for model “User”
- Calling Express Route internally from inside NodeJS
- How to generate unique ID with node.js
- NodeJS: How to get the server’s port?
- How can I use webpack with express?
- How can I easily get access to form data in Express js?