fix(nextjs): disable the default-server x-powered-by option on the express server (#4180)
This way, when disabling the same option in the next.config.js it doesn't just revert to express ISSUES CLOSED: #3961
This commit is contained in:
parent
d42bd2d8c4
commit
3106a53c77
@ -16,6 +16,7 @@ export async function defaultServer(
|
|||||||
await app.prepare();
|
await app.prepare();
|
||||||
|
|
||||||
const server: express.Express = express();
|
const server: express.Express = express();
|
||||||
|
server.disable('x-powered-by');
|
||||||
|
|
||||||
// Set up the proxy.
|
// Set up the proxy.
|
||||||
if (proxyConfig) {
|
if (proxyConfig) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user