From 83eb89830cb4e391e9921685d5a17e08ca66b74f Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Sat, 17 Oct 2020 10:34:25 +0200 Subject: [PATCH] Simplify CSP --- common_config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common_config.php b/common_config.php index 9c9f9fc..764fe37 100644 --- a/common_config.php +++ b/common_config.php @@ -121,7 +121,7 @@ function send_headers(array $styles = []){ foreach($styles as $style) { $style_hashes .= " 'sha256-".base64_encode(hash('sha256', $style, true))."'"; } - header("Content-Security-Policy: base-uri 'self'; default-src 'none'; font-src 'self'; form-action 'self'; frame-ancestors 'none'; img-src 'self' data:; media-src 'self'; style-src 'self'$style_hashes"); + header("Content-Security-Policy: base-uri 'self'; default-src 'none'; form-action 'self'; frame-ancestors 'none'; img-src data:; style-src $style_hashes"); header('X-Content-Type-Options: nosniff'); header('X-Frame-Options: sameorigin'); header('X-XSS-Protection: 1; mode=block');