Skip to content

Commit

Permalink
Merge pull request NamelessMC#2455 from Haxatron/v2
Browse files Browse the repository at this point in the history
Add X-Frame-Options: SAMEORIGIN header via PHP
  • Loading branch information
samerton authored Oct 14, 2021
2 parents b5925d9 + 35eac87 commit 41c8842
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// Uncomment to enable debugging
define('DEBUGGING', 1);

header("X-Frame-Options: SAMEORIGIN");

if ((defined('DEBUGGING') && DEBUGGING) || (isset($_SERVER['NAMELESSMC_DEBUGGING']) && $_SERVER['NAMELESSMC_DEBUGGING'])) {
ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
Expand Down

0 comments on commit 41c8842

Please sign in to comment.