class Marten::HTTP::Errors::UnexpectedHost

Overview

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.

Defined in:

marten/http/errors.cr