aboutsummaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
authorGravatar Inverle <inverle@proton.me> 2025-06-18 22:20:17 +0200
committerGravatar GitHub <noreply@github.com> 2025-06-18 22:20:17 +0200
commita6948218fb1c66fe146c7651555e5a1f791c8112 (patch)
treea878349b1d2808d2ed7318aa34df0546e534690e /p
parentaa45bcbe5a0a723c4b6adfb50139be0be6336d2b (diff)
frame-ancestors CSP (#7677)
Diffstat (limited to 'p')
-rw-r--r--p/f.php2
-rw-r--r--p/themes/.htaccess2
2 files changed, 2 insertions, 2 deletions
diff --git a/p/f.php b/p/f.php
index 14ded4bca..eafb92710 100644
--- a/p/f.php
+++ b/p/f.php
@@ -48,7 +48,7 @@ if ($ico_mtime == false || $ico_mtime < $txt_mtime || ($ico_mtime < time() - (mt
}
}
-header("Content-Security-Policy: default-src 'none'; img-src 'self'; style-src 'self';");
+header("Content-Security-Policy: default-src 'none'; frame-ancestors 'none'; img-src 'self'; style-src 'self';");
if (!httpConditional($ico_mtime, mt_rand(14, 21) * 86400, 2)) {
$ico_content_type = contentType($ico);
header('Content-Type: ' . $ico_content_type);
diff --git a/p/themes/.htaccess b/p/themes/.htaccess
index b38c085e8..c095eee60 100644
--- a/p/themes/.htaccess
+++ b/p/themes/.htaccess
@@ -26,6 +26,6 @@
<IfModule mod_headers.c>
<FilesMatch "\.svg$">
- Header set Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-inline'"
+ Header set Content-Security-Policy "default-src 'self'; frame-ancestors 'none'; style-src 'self' 'unsafe-inline'"
</FilesMatch>
</IfModule>