1 implementation of IEnableCorsAttribute
Microsoft.AspNetCore.Cors (1)
EnableCorsAttribute.cs (1)
13
public class EnableCorsAttribute : Attribute,
IEnableCorsAttribute
4 references to IEnableCorsAttribute
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsMiddleware.cs (1)
139
else if (corsMetadata is
IEnableCorsAttribute
enableCorsAttribute &&
Microsoft.AspNetCore.Mvc.Cors (3)
CorsApplicationModelProvider.cs (3)
47
var
enableCors = controllerModel.Attributes.OfType<
IEnableCorsAttribute
>().FirstOrDefault();
63
enableCors = actionModel.Attributes.OfType<
IEnableCorsAttribute
>().FirstOrDefault();