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 AddCorsDefaultPolicy(…) | Adds a default CORS policy to the application using the specified CorsPolicyBuilder. (2 methods) |
| static AddCorsDefaultPolicyAllowAll(…) | Adds a default CORS policy that allows any origin, method, and header. |
| static AddCorsPolicy(…) | Registers a named CORS policy that was already composed with a CorsPolicyBuilder and applies that policy in the pipeline. (2 methods) |
| static AddCorsPolicyAllowAll(…) | 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) |