1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-14 02:24:08 +02:00

Static domain header added and example added to e107.htaccess

This commit is contained in:
Cameron
2017-04-28 12:06:27 -07:00
parent 6dbe1c01da
commit 48a679bb98
2 changed files with 9 additions and 2 deletions

View File

@@ -2671,7 +2671,13 @@ class e_http_header
{
$this->setHeader("X-Powered-By: e107", true); // no less secure than e107-specific html.
}
if(defined('e_HTTP_STATIC'))
{
// $this->setHeader("Access-Control-Allow-Origin: *",true);
$this->setHeader("Access-Control-Allow-Origin: ".rtrim(e_HTTP_STATIC,'/'), true);
}
if($this->compression_server_support == true)
{
$this->setHeader('Vary: Accept-Encoding');