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