Sisk

Property

McpProvider.OriginValidator

Namespace
Sisk.ModelContextProtocol
Assembly
Sisk.ModelContextProtocol.dll

OriginValidator #

Gets or sets a validator for explicitly trusted origins.

C#
public Func<HttpRequest, string, bool>? OriginValidator { get; set; }

Property Value #

Func<HttpRequest, string, bool>?

Remarks #

Requests without an Origin header are accepted. Requests that include Origin are rejected unless this validator accepts them.

Type to search the documentation and the API reference.