1 implementation of PolicyName
Microsoft.AspNetCore.Cors (1)
EnableCorsAttribute.cs (1)
34public string? PolicyName { get; set; }
6 references to PolicyName
Microsoft.AspNetCore.Cors (2)
Infrastructure\CorsMiddleware.cs (2)
140enableCorsAttribute.PolicyName != null) 143policyName = enableCorsAttribute.PolicyName;
Microsoft.AspNetCore.Cors.Test (2)
CorsEndpointConventionBuilderExtensionsTests.cs (2)
29Assert.Equal("TestPolicyName", metadata.PolicyName); 72Assert.Null(metadata.PolicyName);
Microsoft.AspNetCore.Mvc.Cors (2)
CorsApplicationModelProvider.cs (2)
50controllerModel.Filters.Add(new CorsAuthorizationFilterFactory(enableCors.PolicyName)); 66actionModel.Filters.Add(new CorsAuthorizationFilterFactory(enableCors.PolicyName));