9 references to AddPolicy
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsOptions.cs (1)
38AddPolicy(DefaultPolicyName, policy);
Microsoft.AspNetCore.Cors.Test (8)
CorsMiddlewareTests.cs (3)
133options.AddPolicy("customPolicy", policy); 182options.AddPolicy("customPolicy", policy); 247options.AddPolicy("customPolicy", policy);
CorsOptionsTest.cs (3)
16corsOptions.AddPolicy("policy1", new CorsPolicy()); 18corsOptions.AddPolicy("policy3", new CorsPolicy()); 57corsOptions.AddPolicy("policy3", new CorsPolicy());
DefaultCorsPolicyProviderTests.cs (2)
17options.AddPolicy(options.DefaultPolicyName, policy); 37options.AddPolicy(policyName, policy);