AllowedHostsMiddleware
class AllowedHostsMiddleware implements HTTPMiddleware (View source)
Secures requests by only allowing a whitelist of Host values
Methods
                    public                                                                            
                
                    $this
                
                                
                    setAllowedHosts(array|string $allowedHosts)
        
                                            
                
            Sets the list of allowed Host header values Can also specify a comma separated list
Details
        
                            array
    getAllowedHosts()
        
    
    No description
        
                            $this
    setAllowedHosts(array|string $allowedHosts)
        
    
    Sets the list of allowed Host header values Can also specify a comma separated list
Note that both an empty array and ['*'] can be used to allow all hosts.
        
                            HTTPResponse
    process(HTTPRequest $request, callable $delegate)
        
    
    No description