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