* 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
@@ -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}");
}
/**