protected function isOriginAllowed(?string $origin)
    {
        if ($this->isAllOriginsAllowed()) {
            return true;
        }

        return str_is($this->allowOrigins, $origin);
    }
protected function isOriginAllowed(?string $origin)
    {
        if ($this->isAllOriginsAllowed()) {
            return true;
        }

        return str_is($this->allowOrigins, $origin);
    }
protected function isOriginAllowed ( ? string $ origin ) { if ( $ this -> isAllOriginsAllowed ( ) ) { return true ; } return str_is ( $ this -> allowOrigins , $ origin ) ; }
Returns whether or not the origin is allowed.

@param string|null $origin

@return bool
Returns whether or not the origin is allowed .