请问怎么修改Express 4.x的 X-Powered-By:Express字段?
发布于 1个月前 作者 snowdream 264 次浏览 来自 问答

请问怎么修改Express的 X-Powered-By:Express字段?

3 回复

x-powered-by Enables the “X-Powered-By: Express” HTTP header, enabled by default.

app.set('x-powered-by’, ‘xxx’’)

app.disable(‘x-powered-by’);

回到顶部