KestrunSecurityMiddlewareExtensions.AddCorsAllowAll method
Adds a CORS policy named “AllowAll” that allows any origin, method, and header.
public static KestrunHost AddCorsAllowAll(this KestrunHost host)
| parameter | description |
|---|---|
| host | The KestrunHost instance to configure. |
Return Value
The current KestrunHost instance.
See Also
- class KestrunHost
- class KestrunSecurityMiddlewareExtensions
- namespace Kestrun.Hosting