summaryrefslogtreecommitdiff
path: root/files/common/nginx-snippets/security-headers.conf
diff options
context:
space:
mode:
Diffstat (limited to 'files/common/nginx-snippets/security-headers.conf')
-rw-r--r--files/common/nginx-snippets/security-headers.conf4
1 files changed, 4 insertions, 0 deletions
diff --git a/files/common/nginx-snippets/security-headers.conf b/files/common/nginx-snippets/security-headers.conf
new file mode 100644
index 00000000..b94d479d
--- /dev/null
+++ b/files/common/nginx-snippets/security-headers.conf
@@ -0,0 +1,4 @@
+add_header X-Frame-Options DENY;
+add_header X-Content-Type-Options nosniff;
+add_header X-XSS-Protection "1; mode=block";
+# add_header Content-Security-Policy "default-src 'none'; connect-src 'self'; img-src 'self'; script-src 'self'; style-src 'self'";