Browse Source

Merge pull request #1434 from apoc4lyps/master

hardening http headers
André Peters 7 years ago
parent
commit
83a5eda762
1 changed files with 2 additions and 0 deletions
  1. 2 0
      data/conf/nginx/site.conf

+ 2 - 0
data/conf/nginx/site.conf

@@ -35,7 +35,9 @@ server {
   add_header X-XSS-Protection "1; mode=block";
   add_header X-XSS-Protection "1; mode=block";
   add_header X-Robots-Tag none;
   add_header X-Robots-Tag none;
   add_header X-Download-Options noopen;
   add_header X-Download-Options noopen;
+  add_header X-Frame-Options "SAMEORIGIN" always;
   add_header X-Permitted-Cross-Domain-Policies none;
   add_header X-Permitted-Cross-Domain-Policies none;
+  add_header Referrer-Policy strict-origin;
 
 
   index index.php index.html;
   index index.php index.html;