AWS Community Builder | 15x AWS Certified | Docker Captain
Hooked on the TV drama Silicon Valley, I switched from sales to engineering. Developing SaaS and researching AI at a startup in Tokyo.
app.disable('x-powered-by') is an Express feature and is not applicable to Fastify adapters. If you are using Fastify, you will need to disable the X-Powered-By header using a different method.
does the latter approach works for the Fastify adapter as well?
Thanks comment!
app.disable('x-powered-by')
is an Express feature and is not applicable to Fastify adapters. If you are using Fastify, you will need to disable theX-Powered-By
header using a different method.I think it will look something like this.