Security - Add headers for X-Frame-Options and Content-Security-Policy (#7565)

This commit is contained in:
Alex
2025-10-13 12:04:16 -07:00
committed by GitHub
parent b2641fde8e
commit 4eba4ce737

View File

@@ -88,6 +88,10 @@
global $database;
$database = database::new(['config' => $config]);
//security headers
header("X-Frame-Options: SAMEORIGIN");
header("Content-Security-Policy: frame-ancestors 'self';");
//start the session if not using the command line
global $no_session;
if (!defined('STDIN') && empty($no_session)) {