can i change X-Powered-By:Express?
if i can ,how can i do?
How about this?
var express = require('express');
var app = express();
app.disable('x-powered-by');
// or
app.set('x-powered-by', '....');
You can do it just by using the code:
app.use(function (req, res, next) {
res.setHeader('X-Powered-By', 'Rainbows')
next()
})
You can do it just by using the code:
app.use(function (req, res, next) { res.setHeader('X-Powered-By', 'Rainbows') next() })Thank you @dougwilson :smile:
Now am going to set the response header as follows
app.use((req,res,next) => {
res.setHeader('X-Powered-By','php')
next();
})
Most helpful comment
You can do it just by using the code: