Constructor RouteCorsOptions(string?, string?, bool, Func<HttpRequest, string?>?, int)

Assembly: redb.Route.Http.Hosting.dll

Per-route CORS configuration applied by the shared HTTP server's dispatch middleware.
All fields are immutable. The middleware enforces the wildcard-with-credentials rule
at request time regardless of which field the origin came from.

public RouteCorsOptions(string? AllowedOrigins, string? AllowedMethods, bool AllowCredentials, Func<HttpRequest, string?>? OriginsResolver = null, int MaxAgeSeconds = 86400)