src/Control/Middleware/AllowedHostsMiddleware.php
public function setAllowedHosts($allowedHosts)
    {
        if (is_string($allowedHosts)) {
            $allowedHosts = preg_split('/ *, */', $allowedHosts);
        }
        $this->allowedHosts = $allowedHosts;
        return $this;
    }
public function setAllowedHosts($allowedHosts)
    {
        if (is_string($allowedHosts)) {
            $allowedHosts = preg_split('/ *, */', $allowedHosts);
        }
        $this->allowedHosts = $allowedHosts;
        return $this;
    }
public function setAllowedHosts ( $ allowedHosts ) { if ( is_string ( $ allowedHosts ) ) { $ allowedHosts = preg_split ( '/ *, */' , $ allowedHosts ) ; } $ this -> allowedHosts = $ allowedHosts ; return $ this ; }
Sets the list of allowed Host header values
Can also specify a comma separated list

@param array|string $allowedHosts
@return $this
Sets the list of allowed Host header values Can also specify a comma separated list