Skip to content
Important
Security Advisory: React2Shell & two new vulnerabilities
Find out more
You are currently viewing the Pages Router documentation for version 14 of Next.js.

poweredByHeader

Last updated June 28, 2023

By default Next.js will add the x-powered-by header. To opt-out of it, open next.config.js and disable the poweredByHeader config:

next.config.js
module.exports = {
  poweredByHeader: false,
}

Was this helpful?

supported.