19 instantiations of EnableCorsAttribute
CorsWebSite (6)
Controllers\BlogController.cs (3)
10
[
EnableCors
("AllowAnySimpleRequest")]
18
[
EnableCors
("AllowSpecificOrigin")]
31
[
EnableCors
("WithCredentialsAndOtherSettings")]
Controllers\StoreController.cs (3)
10
[
EnableCors
("AllowAll")]
21
[
EnableCors
("Allow example.com")]
39
[
EnableCors
("Allow example.com")]
Microsoft.AspNetCore.Cors (2)
Infrastructure\CorsEndpointConventionBuilderExtensions.cs (2)
25
endpointBuilder.Metadata.Add(new
EnableCorsAttribute
());
42
endpointBuilder.Metadata.Add(new
EnableCorsAttribute
(policyName));
Microsoft.AspNetCore.Cors.Test (8)
CorsMiddlewareTests.cs (8)
729
httpContext.SetEndpoint(new Endpoint(c => Task.CompletedTask, new EndpointMetadataCollection(new
EnableCorsAttribute
("MetadataPolicyName")), "Test endpoint"));
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"));
821
httpContext.SetEndpoint(new Endpoint(c => Task.CompletedTask, new EndpointMetadataCollection(new
EnableCorsAttribute
("MetadataPolicyName")), "Test endpoint"));
893
httpContext.SetEndpoint(new Endpoint(c => Task.CompletedTask, new EndpointMetadataCollection(new
EnableCorsAttribute
()), "Test endpoint"));
956
httpContext.SetEndpoint(new Endpoint(c => Task.CompletedTask, new EndpointMetadataCollection(new
EnableCorsAttribute
("MetadataPolicyName"), new DisableCorsAttribute()), "Test endpoint"));
983
httpContext.SetEndpoint(new Endpoint(c => Task.CompletedTask, new EndpointMetadataCollection(new
EnableCorsAttribute
("MetadataPolicyName"), new DisableCorsAttribute()), "Test endpoint"));
1008
httpContext.SetEndpoint(new Endpoint(c => Task.CompletedTask, new EndpointMetadataCollection(new
EnableCorsAttribute
("MetadataPolicyName"), new DisableCorsAttribute()), "Test endpoint"));
Microsoft.AspNetCore.Http.Connections.Tests (1)
MapConnectionHandlerTests.cs (1)
449
[
EnableCors
]
Microsoft.AspNetCore.Mvc.Cors.Test (2)
CorsApplicationModelProviderTest.cs (2)
224
[
EnableCors
("policy")]
241
[
EnableCors
("policy")]
2 references to EnableCorsAttribute
Microsoft.AspNetCore.Cors (2)
EnableCorsAttribute.cs (2)
16
/// Creates a new instance of the <see cref="
EnableCorsAttribute
"/> with the default policy
25
/// Creates a new instance of the <see cref="
EnableCorsAttribute
"/> with the supplied policy name.