Class RegisteredClientOriginResolver
HTTP-side adapter that exposes as a
per-request CORS origin resolver compatible with RouteCorsOptions.OriginsResolver.
The resolver is intentionally synchronous: RouteCorsOptions.OriginsResolver takes
a , and the underlying registry exposes an async
API. We bridge by blocking on the only when it has not
already completed synchronously \u2014 in steady state the snapshot is in-memory, so this
path is non-blocking. The first call after
pays the rebuild cost; subsequent CORS preflights are O(1) hash lookups.
public sealed class RegisteredClientOriginResolver
Inheritance
Methods
Resolve(HttpRequest)
Resolves the request's Origin against the registered-client whitelist.
public string? Resolve(HttpRequest request)