mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Security - Add headers for X-Frame-Options and Content-Security-Policy (#7565)
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user