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