4 references to RequireCors
Microsoft.AspNetCore.Cors.Test (1)
CorsEndpointConventionBuilderExtensionsTests.cs (1)
39testConventionBuilder.RequireCors(builder => builder.AllowAnyOrigin());
Microsoft.AspNetCore.Routing.FunctionalTests (3)
EndpointRoutingIntegrationTest.cs (3)
260app.UseEndpoints(b => b.Map("/", TestDelegate).RequireCors(policy => policy.AllowAnyOrigin())); 292app.UseEndpoints(b => b.MapPut("/", TestDelegate).RequireCors(policy => policy.AllowAnyOrigin().AllowAnyMethod())); 328app.UseEndpoints(b => b.Map("/", TestDelegate).RequireCors(policy => policy.AllowAnyOrigin()));