private function originIsAllowed($origin) {
        // Global wildcard defined?
        if (in_array('*', $this->params['allowedOrigins'])) {
            return true;
        }

        // Origin defined?
        if (in_array($origin, $this->params['allowedOrigins'])) {
            return true;
        }

        return false;
    }
private function originIsAllowed($origin) {
        // Global wildcard defined?
        if (in_array('*', $this->params['allowedOrigins'])) {
            return true;
        }

        // Origin defined?
        if (in_array($origin, $this->params['allowedOrigins'])) {
            return true;
        }

        return false;
    }
private function originIsAllowed ( $ origin ) { // Global wildcard defined? if ( in_array ( '*' , $ this -> params [ 'allowedOrigins' ] ) ) { return true ; } // Origin defined? if ( in_array ( $ origin , $ this -> params [ 'allowedOrigins' ] ) ) { return true ; } return false ; }
Check if the given origin is defined as an allowed origin

@param string $origin Origin to validate
@return boolean True if allowed, false otherwise
Check if the given origin is defined as an allowed origin