July 18, 2026HeaderTest Team
How to Add Security Headers in Nginx
Nginx sets response headers with add_header. Here is a copy-paste server block for HSTS, X-Frame-Options, nosniff and more — plus the inheritance trap that silently drops your headers inside a location block.
Read more