Skip to content

Commit

Permalink
remove optional headers
Browse files Browse the repository at this point in the history
  • Loading branch information
bvandenabbeele committed Nov 27, 2024
1 parent 635b2e9 commit 18707c1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions romm.subdomain.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,5 @@ server {
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

# Hide version
server_tokens off;

# Security headers
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header Referrer-Policy "no-referrer-when-downgrade" always;
}
}

0 comments on commit 18707c1

Please sign in to comment.