Skip to content

Commit

Permalink
Set X-Frame-Option
Browse files Browse the repository at this point in the history
  • Loading branch information
kmkalam24 committed Mar 4, 2023
1 parent 83bd788 commit 8c5b27d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/loader.php
Expand Up @@ -7,6 +7,9 @@
// Set the php coockie id only visible over http
ini_set('session.cookie_httponly', true);

// Prevent Loading iframe to other website
header("X-Frame-Options: DENY");

// Check if the PHP version is at leat 7.0
if( version_compare(PHP_VERSION, '7.0.0') <= 0 ) {
header('HTTP/1.0 403 Forbidden');
Expand Down

0 comments on commit 8c5b27d

Please sign in to comment.