src/Request.php
public function isCORS()
    {
        if (isset($this->_isCORS)) {
            return $this->_isCORS;
        }
        return $this->_isCORS = !empty($_SERVER['HTTP_ORIGIN']);
    }
public function isCORS()
    {
        if (isset($this->_isCORS)) {
            return $this->_isCORS;
        }
        return $this->_isCORS = !empty($_SERVER['HTTP_ORIGIN']);
    }
public function isCORS ( ) { if ( isset ( $ this -> _isCORS ) ) { return $ this -> _isCORS ; } return $ this -> _isCORS = ! empty ( $ _SERVER [ 'HTTP_ORIGIN' ] ) ; }
Returns whether this is a CORS request.

@return boolean whether this is a CORS request
Returns whether this is a CORS request .