5 references to EnableCorsAttribute
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsEndpointConventionBuilderExtensions.cs (1)
25
endpointBuilder.Metadata.Add(new
EnableCorsAttribute
());
Microsoft.AspNetCore.Cors.Test (3)
CorsMiddlewareTests.cs (3)
756
httpContext.SetEndpoint(new Endpoint(c => Task.CompletedTask, new EndpointMetadataCollection(new
EnableCorsAttribute
(), new DisableCorsAttribute()), "Test endpoint"));
788
httpContext.SetEndpoint(new Endpoint(c => Task.CompletedTask, new EndpointMetadataCollection(new
EnableCorsAttribute
(), new DisableCorsAttribute()), "Test endpoint"));
893
httpContext.SetEndpoint(new Endpoint(c => Task.CompletedTask, new EndpointMetadataCollection(new
EnableCorsAttribute
()), "Test endpoint"));
Microsoft.AspNetCore.Http.Connections.Tests (1)
MapConnectionHandlerTests.cs (1)
449
[
EnableCors
]