/**
  * Povolí zápis cookies do IFRAMe a pokud má aplikace appNamespace, povolí vložení aplikace do IFRAMe
  */
 private function setHeaders()
 {
     $this->httpResponse->addHeader('P3P', 'CP="CAO PSA OUR"');
     if ($this->config["appNamespace"] !== FALSE) {
         $this->httpResponse->setHeader('X-Frame-Options', NULL);
     }
 }
Example #2
0
 /**
  * @return $this
  */
 public function configure()
 {
     $this->httpResponse->addHeader(self::HEADER_ORIGIN, $this->getOrigin());
     $this->httpResponse->addHeader(self::HEADER_HEADERS, $this->getHeaders());
     $this->httpResponse->addHeader(self::HEADER_METHODS, $this->getMethods());
 }