Add option to enable/disable iframe inclusion http header
This commit is contained in:
@@ -153,7 +153,7 @@ abstract class Base
|
|||||||
$this->response->xss();
|
$this->response->xss();
|
||||||
|
|
||||||
// Allow the public board iframe inclusion
|
// Allow the public board iframe inclusion
|
||||||
if ($action !== 'readonly') {
|
if (ENABLE_XFRAME && $action !== 'readonly') {
|
||||||
$this->response->xframe();
|
$this->response->xframe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -68,6 +68,9 @@ defined('MAIL_SENDMAIL_COMMAND') or define('MAIL_SENDMAIL_COMMAND', '/usr/sbin/s
|
|||||||
// Enable or disable "Strict-Transport-Security" HTTP header
|
// Enable or disable "Strict-Transport-Security" HTTP header
|
||||||
defined('ENABLE_HSTS') or define('ENABLE_HSTS', true);
|
defined('ENABLE_HSTS') or define('ENABLE_HSTS', true);
|
||||||
|
|
||||||
|
// Enable or disable "X-Frame-Options: DENY" HTTP header
|
||||||
|
defined('ENABLE_XFRAME') or define('ENABLE_XFRAME', true);
|
||||||
|
|
||||||
// Default files directory
|
// Default files directory
|
||||||
defined('FILES_DIR') or define('FILES_DIR', 'data/files/');
|
defined('FILES_DIR') or define('FILES_DIR', 'data/files/');
|
||||||
|
|
||||||
|
|||||||
@@ -124,3 +124,6 @@ define('REVERSE_PROXY_DEFAULT_DOMAIN', '');
|
|||||||
|
|
||||||
// Enable or disable "Strict-Transport-Security" HTTP header
|
// Enable or disable "Strict-Transport-Security" HTTP header
|
||||||
define('ENABLE_HSTS', true);
|
define('ENABLE_HSTS', true);
|
||||||
|
|
||||||
|
// Enable or disable "X-Frame-Options: DENY" HTTP header
|
||||||
|
define('ENABLE_XFRAME', true);
|
||||||
|
|||||||
Reference in New Issue
Block a user