I'd also like to request the ability to easily add security headers for Nginx.
I was looking to add just a few globally. I was able to create a custom .conf file in /etc/nginx/conf.d/ and add the below to it:
# Global security headers
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
I feel those headers are pretty safe to add globally, but the above only works for HTML sites. It doesn't work on PHP sites.
Preferably though, customers should be able to set all the relevant security headers themselves on servers running Nginx. As nhybgtvfr said, not everyone is using Apache / OLS, some of us like Nginx. 😃