mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 17:14:42 +02:00
Issue #2600 defining e_HTTP_STATIC now applies to images (using thumbUrl/toImage) as well as js/css.
eg. define('e_HTTP_STATIC', 'http://static.mydomain.com/');
This commit is contained in:
@@ -2672,12 +2672,6 @@ 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');
|
||||
|
Reference in New Issue
Block a user