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