Sprog

OutboundHostValidatorOptions Class

Definition

Options controlling the shared IOutboundHostValidator "allowed hosts" anti-SSRF control.

public class OutboundHostValidatorOptions
type OutboundHostValidatorOptions = class
Public Class OutboundHostValidatorOptions
Inheritance
OutboundHostValidatorOptions

Remarks

Enforcement is opt-in: Enabled defaults to false so existing behavior is preserved until an operator explicitly turns it on.

Constructors

Name Description
OutboundHostValidatorOptions()

Properties

Name Description
Enabled

Gets or sets a value indicating whether outbound host validation is enforced. Defaults to false.

Hosts

Gets or sets the additional allowed host suffixes. An entry matches a request host when the host equals the entry or is a subdomain of it (e.g. contoso.com matches contoso.com and files.contoso.com). A leading *. is accepted and ignored (treated as a suffix).

IncludeDefaultMicrosoftHosts

Gets or sets a value indicating whether the built-in list of Microsoft first-party hosts (Bot Connector, Graph, SharePoint, Azure Blob/AMS) is included when enforcement is enabled. Defaults to true.

Applies to