Add X-Frame-Options to login pages & client portal

This commit is contained in:
Marcus Hill 2023-02-05 18:43:50 +00:00
parent 8bcd759444
commit e8c9e63a7b
4 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,7 @@
<?php
header("X-Frame-Options: DENY");
if (!file_exists('config.php')) {
header("Location: setup.php");
exit;

View File

@ -15,7 +15,7 @@ if (!isset($_SESSION)) {
session_start();
}
if (!$_SESSION['client_logged_in']) {
if (!isset($_SESSION['client_logged_in']) || !$_SESSION['client_logged_in']) {
header("Location: login.php");
die;
}

View File

@ -4,6 +4,8 @@
* Landing / Home page for the client portal
*/
header("X-Frame-Options: DENY");
$session_company_id = 1;
require_once('../config.php');
require_once('../functions.php');

View File

@ -3,6 +3,8 @@
* Client Portal
* HTML Header
*/
header("X-Frame-Options: DENY");
?>
<!DOCTYPE html>