Download options are ok

This commit is contained in:
Bob Mottram 2018-03-05 17:54:21 +00:00
parent a7cdc5e7bf
commit 9b166b255a
1 changed files with 1 additions and 2 deletions

View File

@ -367,6 +367,7 @@ function fedwiki_setup_web {
echo ''; echo '';
echo ' add_header X-Frame-Options DENY;'; echo ' add_header X-Frame-Options DENY;';
echo ' add_header X-Content-Type-Options nosniff;'; echo ' add_header X-Content-Type-Options nosniff;';
echo ' add_header X-Download-Options noopen;';
echo ''; echo '';
echo ' location /fonts-font-awesome/ {'; echo ' location /fonts-font-awesome/ {';
echo ' alias /usr/share/fonts-font-awesome/;'; echo ' alias /usr/share/fonts-font-awesome/;';
@ -383,8 +384,6 @@ function fedwiki_setup_web {
sed -i '/Content-Security-Policy/d' "$fedwiki_nginx_file" sed -i '/Content-Security-Policy/d' "$fedwiki_nginx_file"
sed -i '/X-XSS-Protection/d' "$fedwiki_nginx_file" sed -i '/X-XSS-Protection/d' "$fedwiki_nginx_file"
sed -i '/X-Robots-Tag/d' "$fedwiki_nginx_file"
sed -i '/X-Download-Options/d' "$fedwiki_nginx_file"
sed -i '/X-Permitted-Cross-Domain-Policies/d' "$fedwiki_nginx_file" sed -i '/X-Permitted-Cross-Domain-Policies/d' "$fedwiki_nginx_file"
function_check create_site_certificate function_check create_site_certificate