Exemple #1
0
 protected function _setContent($content)
 {
     $this->setHeader('Access-Control-Allow-Origin', $this->getSite()->getUrl());
     parent::_setContent($content);
 }
Exemple #2
0
 protected function _setContent($content)
 {
     $this->setHeader('Access-Control-Allow-Origin', $this->getSite()->getUrlBase());
     $this->setHeaderExpires(86400 * 365);
     parent::_setContent($content);
 }