7. A Note on "X-Powered-By"
This is a header you want to REMOVE, not add.
By default, Express sends X-Powered-By: Express and Nginx sends Server: nginx/1.18.0.
This tells hackers exactly what software and version you are running, helping them find specific exploits (CVEs).
Hide it.
app.disable('x-powered-by'); // Express
server_tokens off; // Nginx
Security through obscurity isn't perfect, but don't give them a free map. It's like locking your front door but leaving a note saying 'The key is under the mat'. Don't make their job easier. Every layer of defense counts, and removing these headers is the simplest layer you can add.