request->getHeader('Origin')) { $this->setCors(); } if (!$this->request->isOptions()) { $this->checkRateLimit(); } return true; } protected function getAuthUser() { /** * @var AppAuth $auth */ $auth = $this->getDI()->get('auth'); return $auth->getCurrentUser(); } }