nginx-basic/etc/nginx/conf.d/securityHeaders.conf

16 lines
528 B
Plaintext

#######
### NGINX configuration - add security related headers
### (HTTPS specific headers are added in HTTPS configuration)
#######
add_header Feature-Policy "geolocation 'self'";
add_header Referrer-Policy "strict-origin" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Download-Options noopen;
add_header X-Frame-Options DENY;
add_header X-Permitted-Cross-Domain-Policies none;
add_header X-Robots-Tag none;
add_header X-UA-Compatible "IE=edge";
add_header X-XSS-Protection "1; mode=block" always;