KestrunSecurityMiddlewareExtensions.AddCorsDefaultPolicyAllowAll method

Adds a default CORS policy that allows any origin, method, and header.

public static KestrunHost AddCorsDefaultPolicyAllowAll(this KestrunHost host)
parameter description
host The KestrunHost instance to configure.

Return Value

The current KestrunHost instance.

See Also