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