1 implementation of IDisableCorsAttribute
Microsoft.AspNetCore.Cors (1)
DisableCorsAttribute.cs (1)
12
public class DisableCorsAttribute : Attribute,
IDisableCorsAttribute
5 references to IDisableCorsAttribute
Microsoft.AspNetCore (1)
Internal\DefaultCsrfProtection.cs (1)
88
if (corsMetadata is
IDisableCorsAttribute
)
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsMiddleware.cs (1)
116
if (corsMetadata is
IDisableCorsAttribute
)
Microsoft.AspNetCore.Mvc.Cors (3)
CorsApplicationModelProvider.cs (3)
53
var
disableCors = controllerModel.Attributes.OfType<
IDisableCorsAttribute
>().FirstOrDefault();
69
disableCors = actionModel.Attributes.OfType<
IDisableCorsAttribute
>().FirstOrDefault();