@@ -431,7 +431,7 @@ private static bool ContainsHttpMethod(List<string> httpMethods, string httpMeth
431431 return false ;
432432 }
433433
434- private static bool IsCoresPreflight ( HttpContext httpContext , string httpMethod , out StringValues accessControlRequestMethod )
434+ private static bool IsCorsPreflightRequest ( HttpContext httpContext , string httpMethod , out StringValues accessControlRequestMethod )
435435 {
436436 accessControlRequestMethod = default ;
437437 var headers = httpContext . Request . Headers ;
@@ -474,7 +474,7 @@ public SingleEntryHttpMethodPolicyJumpTable(
474474 public override int GetDestination ( HttpContext httpContext )
475475 {
476476 var httpMethod = httpContext . Request . Method ;
477- if ( _supportsCorsPreflight && IsCoresPreflight ( httpContext , httpMethod , out var accessControlRequestMethod ) )
477+ if ( _supportsCorsPreflight && IsCorsPreflightRequest ( httpContext , httpMethod , out var accessControlRequestMethod ) )
478478 {
479479 return CompareMethod ( accessControlRequestMethod , _method ) ? _corsPreflightDestination : _corsPreflightExitDestination ;
480480 }
@@ -518,7 +518,7 @@ public override int GetDestination(HttpContext httpContext)
518518 int destination ;
519519
520520 var httpMethod = httpContext . Request . Method ;
521- if ( _supportsCorsPreflight && IsCoresPreflight ( httpContext , httpMethod , out var accessControlRequestMethod ) )
521+ if ( _supportsCorsPreflight && IsCorsPreflightRequest ( httpContext , httpMethod , out var accessControlRequestMethod ) )
522522 {
523523 return _corsPreflightDestinations ! . TryGetValue ( accessControlRequestMethod , out destination )
524524 ? destination
0 commit comments