2 implementations of ICorsAuthorizationFilter
Microsoft.AspNetCore.Mvc.Cors (2)
CorsAuthorizationFilter.cs (1)
16
public class CorsAuthorizationFilter :
ICorsAuthorizationFilter
DisableCorsAuthorizationFilter.cs (1)
14
internal sealed class DisableCorsAuthorizationFilter :
ICorsAuthorizationFilter
6 references to ICorsAuthorizationFilter
Microsoft.AspNetCore.Mvc.Cors (6)
CorsApplicationModelProvider.cs (3)
42
var isCorsEnabledGlobally = context.Result.Filters.OfType<
ICorsAuthorizationFilter
>().Any() ||
59
var corsOnController = enableCors != null || disableCors != null || controllerModel.Filters.OfType<
ICorsAuthorizationFilter
>().Any();
75
var corsOnAction = enableCors != null || disableCors != null || actionModel.Filters.OfType<
ICorsAuthorizationFilter
>().Any();
CorsAuthorizationFilter.cs (2)
68
if (!context.IsEffectivePolicy<
ICorsAuthorizationFilter
>(this))
70
_logger.NotMostEffectiveFilter(typeof(
ICorsAuthorizationFilter
));
DisableCorsAuthorizationFilter.cs (1)
12
/// An <see cref="
ICorsAuthorizationFilter
"/> which ensures that an action does not run for a pre-flight request.