4 references to CorsHttpMethodActionConstraint
Microsoft.AspNetCore.Mvc.Cors (1)
CorsApplicationModelProvider.cs (1)
102
actionConstraints[j] = new
CorsHttpMethodActionConstraint
(httpConstraint);
Microsoft.AspNetCore.Mvc.Cors.Test (3)
CorsHttpMethodActionConstraintTest.cs (3)
30
var constraint = new
CorsHttpMethodActionConstraint
(new HttpMethodActionConstraint(httpMethods)) as IActionConstraint;
45
var constraint = new
CorsHttpMethodActionConstraint
(new HttpMethodActionConstraint(new[] { "GET", "Post" })) as IActionConstraint;
61
var constraint = new
CorsHttpMethodActionConstraint
(new HttpMethodActionConstraint(httpMethods)) as IActionConstraint;