15 references to 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)
EnableCorsAttribute.cs (1)
20
:
this
(policyName: null)
Infrastructure\CorsEndpointConventionBuilderExtensions.cs (1)
42
endpointBuilder.Metadata.Add(new
EnableCorsAttribute
(policyName));
Microsoft.AspNetCore.Cors.Test (5)
CorsMiddlewareTests.cs (5)
729
httpContext.SetEndpoint(new Endpoint(c => Task.CompletedTask, new EndpointMetadataCollection(new
EnableCorsAttribute
("MetadataPolicyName")), "Test endpoint"));
821
httpContext.SetEndpoint(new Endpoint(c => Task.CompletedTask, new EndpointMetadataCollection(new
EnableCorsAttribute
("MetadataPolicyName")), "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.Mvc.Cors.Test (2)
CorsApplicationModelProviderTest.cs (2)
224
[
EnableCors
("policy")]
241
[
EnableCors
("policy")]