Add configuration option to enable/disable 'Strict-Transport-Security' HTTP header
This commit is contained in:
@@ -116,9 +116,12 @@ abstract class Base
|
||||
$this->response->csp(array('style-src' => "'self' 'unsafe-inline'"));
|
||||
$this->response->nosniff();
|
||||
$this->response->xss();
|
||||
$this->response->hsts();
|
||||
$this->response->xframe();
|
||||
|
||||
if (ENABLE_HSTS) {
|
||||
$this->response->hsts();
|
||||
}
|
||||
|
||||
// Load translations
|
||||
$language = $this->config->get('language', 'en_US');
|
||||
if ($language !== 'en_US') Translator::load($language);
|
||||
|
||||
Reference in New Issue
Block a user