KestrunSecurityMiddlewareExtensions class

Extension methods for adding security-related middleware to a KestrunHost.

public static class KestrunSecurityMiddlewareExtensions

Public Members

name description
static AddAntiforgery(…) Adds antiforgery protection to the application. This overload allows you to specify configuration options. (2 methods)
static AddCors(…) Registers a named CORS policy that was already composed with a CorsPolicyBuilder and applies that policy in the pipeline. (2 methods)
static AddCorsAllowAll(…) Adds a CORS policy named “AllowAll” that allows any origin, method, and header.
static AddHostFiltering(…) Adds Host Filtering to the application using the specified configuration delegate. (2 methods)
static AddRateLimiter(…) Adds rate limiting to the application using the specified RateLimiterOptions. (2 methods)

See Also