Skip to content

Commit 6075fae

Browse files
committed
added iframe header to prevent console warning in chrome and newer browsers
1 parent 28ca013 commit 6075fae

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

cache.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
// concat theme path to make etags unique per theme
1919
if ($fileList == '') $fileList = THEME_PATH . v($_REQUEST["css"]);
2020
if ($fileList == '') exit();
21+
22+
header("X-Frame-Options: SAMEORIGIN");
2123

2224
// cache scripts and css per version, if not in development mode
2325
if ($useCache) {

index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
define('BASE_PATH', dirname(__FILE__));
1111

1212
header("Content-Type: text/html;charset=utf-8");
13+
header("X-Frame-Options: SAMEORIGIN");
1314
include_once(BASE_PATH . "/lib/session.php");
1415
Session::init();
1516

0 commit comments

Comments
 (0)