class

Marten::HTTP::Errors::UnexpectedHost

Inherits Marten::HTTP::Errors::SuspiciousOperation / Exception / Reference / Object

Represents an error raised when the host specified in the request doesn't match the list of allowed hosts.

Marten has to be explictely configured to serve a list of allowed hosts. This is to mitigate HTTP Host header attacks.