From 0c4bed5b6fce56180bd0dfaa2f4e6ca0243674c3 Mon Sep 17 00:00:00 2001 From: yuancheng Date: Sun, 19 Jul 2026 18:41:31 +0800 Subject: [PATCH] Restore config/security_headers.php mmdvmhost/lh.php (and admin/mmdvmhost/lh.php) require_once this file and call setEmbeddableSecurityHeaders(), but the file was never committed to this repo (confirmed absent across main/dev/development history), causing a fatal "failed opening required" 500 on the Last Heard panel. Restores both setSecurityHeaders() (full page: adds X-Frame-Options + CSP frame-ancestors) and setEmbeddableSecurityHeaders() (AJAX partial variant, omits the framing directives since it's loaded into the parent via $.load(), not an iframe), matching the behavior described in the comments already present in lh.php and functions.php. --- config/security_headers.php | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 config/security_headers.php diff --git a/config/security_headers.php b/config/security_headers.php new file mode 100644 index 0000000..f562cf0 --- /dev/null +++ b/config/security_headers.php @@ -0,0 +1,50 @@ +