Table of Contents

Method Permits

Namespace
MailFathom.Infrastructure.Security.Transport
Assembly
MailFathom.Infrastructure.dll

Permits(string?)

Gets whether a request carrying a given Origin is served.

public bool Permits(string? origin)

Parameters

origin string

The header value, or null when the request carried none.

Returns

bool

true when the request is served; otherwise false.

Remarks

A request with no Origin is served, because that is every non-browser client and the header is not a credential. An opaque origin, which a browser spells null, normalizes to nothing and is refused under a restricting policy: it names no origin an operator could have listed.