Skip to content

Commit f797512

Browse files
committed
add more security headers
thanks to @J0WI (#52)
1 parent 75f5598 commit f797512

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sites-available/matomo.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ server {
2323
include ssl.conf; # if you want to support older browsers, please read through this file
2424

2525
add_header Referrer-Policy origin always; # make sure outgoing links don't show the URL to the Matomo instance
26+
add_header X-Content-Type-Options "nosniff" always;
27+
add_header X-XSS-Protection "1; mode=block" always;
2628

2729
root /var/www/matomo/; # replace with path to your matomo instance
2830

0 commit comments

Comments
 (0)