4 implementations of AcceptCorsPreflight
Microsoft.AspNetCore.Routing (1)
HttpMethodMetadata.cs (1)
48public bool AcceptCorsPreflight { get; set; }
Microsoft.AspNetCore.Routing.Tests (2)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (1)
533public bool AcceptCorsPreflight => false;
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
1148public bool AcceptCorsPreflight => false;
RoutingSandbox (1)
UseEndpointRoutingStartup.cs (1)
114public bool AcceptCorsPreflight => false;
1 write to AcceptCorsPreflight
Microsoft.AspNetCore.Routing (1)
RouteEndpointBuilder.cs (1)
104httpMethodMetadata.AcceptCorsPreflight = true;
4 references to AcceptCorsPreflight
Microsoft.AspNetCore.Mvc.Core.Test (1)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
330Assert.False(lastHttpMethodMetadata.AcceptCorsPreflight);
Microsoft.AspNetCore.Routing (3)
Matching\HttpMethodMatcherPolicy.cs (2)
117if (metadata.AcceptCorsPreflight && 301return metadata == null ? (Array.Empty<string>(), false) : (metadata.HttpMethods, metadata.AcceptCorsPreflight);
RouteEndpointBuilder.cs (1)
100if (hasCorsMetadata && httpMethodMetadata is not null && !httpMethodMetadata.AcceptCorsPreflight)