From 8808081f0cc578bb5bc39780089f19848830719f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 5 Mar 2023 22:38:11 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 2fcab10..56c2e84 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,4 +4,12 @@ location __PATH__/ { alias __INSTALL_DIR__/; index index.html; + + more_set_headers "X-Frame-Options: SAMEORIGIN"; + more_set_headers "X-Content-Type-Options: nosniff"; + more_set_headers "X-XSS-Protection: '1; mode=block'"; + more_set_headers "Content-Security-Policy: frame-ancestors 'self'"; + + # Include SSOWAT user panel. + include conf.d/yunohost_panel.conf.inc; }