diff --git a/setup/start/nginx/appconfig.ejs b/setup/start/nginx/appconfig.ejs index a53ec2b30..be0249d7d 100644 --- a/setup/start/nginx/appconfig.ejs +++ b/setup/start/nginx/appconfig.ejs @@ -33,6 +33,14 @@ server { # https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options add_header X-Frame-Options "<%= xFrameOptions %>"; + # https://github.com/twitter/secureheaders + # https://www.owasp.org/index.php/OWASP_Secure_Headers_Project#tab=Compatibility_Matrix + # https://wiki.mozilla.org/Security/Guidelines/Web_Security + add_header X-XSS-Protection "1; mode=block"; + add_header X-Download-Options "noopen"; + add_header X-Content-Type-Options "nosniff"; + add_header X-Permitted-Cross-Domain-Policies "none"; + proxy_http_version 1.1; proxy_intercept_errors on; proxy_read_timeout 3500;