* adjust for X-Frame-Options.

This commit is contained in:
z
2020-11-26 13:53:44 +08:00
parent b167a90887
commit 124bbb2e8b
4 changed files with 4 additions and 10 deletions
+2 -1
View File
@@ -115,7 +115,8 @@ $config->framework->detectDevice['fr'] = true; // 在en语言情况下,是
$config->framework->detectDevice['vi'] = true; // 在en语言情况下,是否启用设备检测功能。 Whether enable device detect or not.
/* IP white list settings.*/
$config->ipWhiteList = '*';
$config->ipWhiteList = '*';
$config->xFrameOptions = 'SAMEORIGIN';
/* Switch for zentao features. */
$config->features = new stdclass();
+2 -1
View File
@@ -45,8 +45,9 @@ class commonModel extends model
public function sendHeader()
{
header("Content-Type: text/html; Language={$this->config->charset}");
header("X-Frame-Options: SAMEORIGIN");
header("Cache-control: private");
if(!empty($this->config->xFrameOptions)) header("X-Frame-Options: {$this->config->xFrameOptions}");
}
/**
-4
View File
@@ -30,10 +30,6 @@ php_value display_errors 1
php_value max_input_vars 100000
</IfModule>
<IfModule mod_headers.c>
Header always append X-Frame-Options SAMEORIGIN
</IfModule>
# yslow settings.
<IfModule mod_expires.c>
ExpiresActive On
-4
View File
@@ -26,10 +26,6 @@ php_value display_errors 1
php_value max_input_vars 100000
</IfModule>
<IfModule mod_headers.c>
Header always append X-Frame-Options SAMEORIGIN
</IfModule>
# yslow settings.
<IfModule mod_expires.c>
ExpiresActive On