From mboxrd@z Thu Jan 1 00:00:00 1970 From: peter.mueller@ipfire.org To: development@lists.ipfire.org Subject: [PATCH 2/2] Apache: deny framing of WebUI from different origins Date: Mon, 04 Nov 2019 18:53:00 +0000 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3090648175322836640==" List-Id: --===============3090648175322836640== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable There is no legitimate reason to do this. Setting header X-Frame-Options to "sameorigin" is necessary for displaying some collectd graphs on the WebUI. Signed-off-by: Peter M=C3=BCller --- config/httpd/vhosts.d/ipfire-interface-ssl.conf | 1 + config/httpd/vhosts.d/ipfire-interface.conf | 1 + 2 files changed, 2 insertions(+) diff --git a/config/httpd/vhosts.d/ipfire-interface-ssl.conf b/config/httpd/v= hosts.d/ipfire-interface-ssl.conf index dc1151110..de7b8559d 100644 --- a/config/httpd/vhosts.d/ipfire-interface-ssl.conf +++ b/config/httpd/vhosts.d/ipfire-interface-ssl.conf @@ -23,6 +23,7 @@ Header always set X-Content-Type-Options nosniff Header always set Content-Security-Policy "default-src 'self'; script-sr= c 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'" Header always set Referrer-Policy strict-origin + Header always set X-Frame-Options sameorigin =20 Options ExecCGI diff --git a/config/httpd/vhosts.d/ipfire-interface.conf b/config/httpd/vhost= s.d/ipfire-interface.conf index d95fa264f..2cf57dd29 100644 --- a/config/httpd/vhosts.d/ipfire-interface.conf +++ b/config/httpd/vhosts.d/ipfire-interface.conf @@ -9,6 +9,7 @@ Header always set X-Content-Type-Options nosniff Header always set Content-Security-Policy "default-src 'self'; script-sr= c 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'" Header always set Referrer-Policy strict-origin + Header always set X-Frame-Options sameorigin =20 Options ExecCGI --=20 2.16.4 --===============3090648175322836640==--