]> gitweb.fluxo.info Git - puppet-nginx.git/commitdiff
Some clickjacking protections
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 24 Jan 2019 17:04:39 +0000 (15:04 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 24 Jan 2019 17:04:39 +0000 (15:04 -0200)
templates/site-ssl.erb

index a370bc727f69d9fa9efadec7f0c2ab708ac2ce7b..5b9ce040bf3fd1151aad6639c55948bc94bc9bfd 100644 (file)
@@ -12,6 +12,11 @@ server {
   # enable HSTS header
   add_header Strict-Transport-Security "max-age=15768000; includeSubdomains; preload";
 
+  # clickjacking protection
+  add_header X-Content-Type-Options nosniff;
+  add_header X-XSS-Protection "1; mode=block";
+  add_header X-Frame-Options DENY;
+
   location / {
     # preserve http header and set forwarded proto
     proxy_set_header Host $http_host;