From 0bd4798962c0b43263eada0c2cecf1061048c8b8 Mon Sep 17 00:00:00 2001 From: wj25czxj47bu6q <96372288+wj25czxj47bu6q@users.noreply.github.com> Date: Sat, 7 Oct 2023 11:52:53 +0000 Subject: [PATCH] Update Element headers Signed-off-by: wj25czxj47bu6q <96372288+wj25czxj47bu6q@users.noreply.github.com> --- etc/nginx/conf.d/element.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/nginx/conf.d/element.conf b/etc/nginx/conf.d/element.conf index 84c5252..05729de 100644 --- a/etc/nginx/conf.d/element.conf +++ b/etc/nginx/conf.d/element.conf @@ -7,7 +7,9 @@ server { include /etc/nginx/ssl.conf; include /etc/nginx/proxy.conf; include /etc/nginx/headers.conf; - add_header Content-Security-Policy "default-src 'none'; connect-src 'self' https://arcticfoxes.net https://matrix.arcticfoxes.net; font-src 'self'; img-src 'self' https://arcticfoxes.net https://matrix.arcticfoxes.net blob: data:; manifest-src 'self'; media-src 'self' https://matrix.arcticfoxes.net blob:; script-src 'self' 'unsafe-eval' https://www.recaptcha.net https://www.gstatic.com; style-src 'self' 'unsafe-inline'; frame-src 'self' https://www.recaptcha.net blob:; frame-ancestors 'self'; upgrade-insecure-requests; block-all-mixed-content; base-uri 'none'"; + + proxy_hide_header Content-Security-Policy; + add_header Content-Security-Policy "default-src 'none'; connect-src 'self' https://arcticfoxes.net https://matrix.arcticfoxes.net https://syncv3.arcticfoxes.net; font-src 'self'; img-src 'self' https://arcticfoxes.net https://matrix.arcticfoxes.net blob: data:; manifest-src 'self'; media-src 'self' https://matrix.arcticfoxes.net blob:; script-src 'self' 'unsafe-eval' https://www.recaptcha.net https://www.gstatic.com; style-src 'self' 'unsafe-inline'; frame-src 'self' https://www.recaptcha.net blob:; frame-ancestors 'self'; upgrade-insecure-requests; block-all-mixed-content; base-uri 'none'"; location / { proxy_pass http://127.0.0.1:81;