8 references to DefaultPolicyName
Microsoft.AspNetCore.Cors (4)
EnableCorsAttribute.cs (1)
17
/// name defined by <see cref="CorsOptions.
DefaultPolicyName
"/>.
Infrastructure\CorsOptions.cs (2)
38
AddPolicy(
DefaultPolicyName
, policy);
49
AddPolicy(
DefaultPolicyName
, configurePolicy);
Infrastructure\DefaultCorsPolicyProvider.cs (1)
29
policyName ??= _options.
DefaultPolicyName
;
Microsoft.AspNetCore.Cors.Test (4)
CorsOptionsTest.cs (3)
21
var actualPolicy = corsOptions.GetPolicy(corsOptions.
DefaultPolicyName
);
37
var actualPolicy = corsOptions.GetPolicy(corsOptions.
DefaultPolicyName
);
60
var actualPolicy = corsOptions.GetPolicy(corsOptions.
DefaultPolicyName
);
DefaultCorsPolicyProviderTests.cs (1)
17
options.AddPolicy(options.
DefaultPolicyName
, policy);