25 references to AccessControlRequestMethod
Microsoft.AspNetCore.Cors (2)
Infrastructure\CorsMiddleware.cs (1)
120var isCorsPreflightRequest = isOptionsRequest && context.Request.Headers.ContainsKey(CorsConstants.AccessControlRequestMethod);
Infrastructure\CorsService.cs (1)
72var isPreflightRequest = isOptionsRequest && requestHeaders.ContainsKey(CorsConstants.AccessControlRequestMethod);
Microsoft.AspNetCore.Cors.Test (8)
CorsMiddlewareTests.cs (7)
195.AddHeader(CorsConstants.AccessControlRequestMethod, "PUT") 260.AddHeader(CorsConstants.AccessControlRequestMethod, "PUT") 323.AddHeader(CorsConstants.AccessControlRequestMethod, "PUT") 482.AddHeader(CorsConstants.AccessControlRequestMethod, "PUT") 660httpContext.Request.Headers.Add(CorsConstants.AccessControlRequestMethod, new[] { "PUT" }); 759httpContext.Request.Headers.Add(CorsConstants.AccessControlRequestMethod, new[] { "GET" }); 791httpContext.Request.Headers.Add(CorsConstants.AccessControlRequestMethod, new[] { "GET" });
CorsServiceTests.cs (1)
963context.Request.Headers.Add(CorsConstants.AccessControlRequestMethod, new[] { accessControlRequestMethod });
Microsoft.AspNetCore.Mvc.Cors (2)
CorsAuthorizationFilter.cs (1)
90httpContext.Request.Headers[CorsConstants.AccessControlRequestMethod];
DisableCorsAuthorizationFilter.cs (1)
27context.HttpContext.Request.Headers[CorsConstants.AccessControlRequestMethod];
Microsoft.AspNetCore.Mvc.Cors.Test (3)
CorsAuthorizationFilterTest.cs (1)
139httpContext.Request.Headers.Add(CorsConstants.AccessControlRequestMethod, new[] { headers.Method });
DisableCorsAuthorizationFilterTest.cs (2)
22httpContext.Request.Headers.Add(CorsConstants.AccessControlRequestMethod, "PUT"); 63httpContext.Request.Headers.Add(CorsConstants.AccessControlRequestMethod, "PUT");
Microsoft.AspNetCore.Mvc.FunctionalTests (10)
CorsTests.cs (1)
18request.Headers.Add(CorsConstants.AccessControlRequestMethod, "POST");
CorsTestsBase.cs (9)
82request.Headers.Add(CorsConstants.AccessControlRequestMethod, "POST"); 100request.Headers.Add(CorsConstants.AccessControlRequestMethod, "POST"); 123request.Headers.Add(CorsConstants.AccessControlRequestMethod, method); 192request.Headers.Add(CorsConstants.AccessControlRequestMethod, "PUT"); 277request.Headers.Add(CorsConstants.AccessControlRequestMethod, method); 302request.Headers.Add(CorsConstants.AccessControlRequestMethod, "GET"); 334request.Headers.Add(CorsConstants.AccessControlRequestMethod, "GET"); 373request.Headers.Add(CorsConstants.AccessControlRequestMethod, "GET"); 396request.Headers.Add(CorsConstants.AccessControlRequestMethod, "GET");