CorsEndpointConventionBuilderExtensions Class

Definition

CORS extension methods for IEndpointConventionBuilder.

public ref class CorsEndpointConventionBuilderExtensions abstract sealed
public static class CorsEndpointConventionBuilderExtensions
type CorsEndpointConventionBuilderExtensions = class
Public Module CorsEndpointConventionBuilderExtensions
Inheritance
CorsEndpointConventionBuilderExtensions

Methods

RequireCors<TBuilder>(TBuilder, Action<CorsPolicyBuilder>)

Adds the specified CORS policy to the endpoint(s).

RequireCors<TBuilder>(TBuilder, String)

Adds a CORS policy with the specified name to the endpoint(s).

Applies to