53 references to CorsPolicy
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsPolicyBuilder.cs (1)
13private readonly CorsPolicy _policy = new CorsPolicy();
Microsoft.AspNetCore.Cors.Test (51)
CorsMiddlewareTests.cs (2)
112var policy = new CorsPolicy(); 159var policy = new CorsPolicy();
CorsOptionsTest.cs (6)
13var expectedPolicy = new CorsPolicy(); 16corsOptions.AddPolicy("policy1", new CorsPolicy()); 18corsOptions.AddPolicy("policy3", new CorsPolicy()); 30var expectedPolicy = new CorsPolicy(); 33corsOptions.AddDefaultPolicy(new CorsPolicy()); 57corsOptions.AddPolicy("policy3", new CorsPolicy());
CorsPolicyBuilderTests.cs (2)
13var originalPolicy = new CorsPolicy(); 48var originalPolicy = new CorsPolicy();
CorsPolicyExtensionsTests.cs (4)
13var policy = new CorsPolicy(); 33var policy = new CorsPolicy(); 51var policy = new CorsPolicy(); 72var policy = new CorsPolicy();
CorsPolicyTests.cs (4)
12var corsPolicy = new CorsPolicy(); 32var policy = new CorsPolicy(); 45var policy = new CorsPolicy(); 63var corsPolicy = new CorsPolicy
CorsServiceTests.cs (31)
19var policy = new CorsPolicy 40var result = corsService.EvaluatePolicy(requestContext, new CorsPolicy()); 53var policy = new CorsPolicy(); 69var policy = new CorsPolicy(); 84var policy = new CorsPolicy() 104var policy = new CorsPolicy 124var policy = new CorsPolicy(); 140var policy = new CorsPolicy 159var policy = new CorsPolicy 178var policy = new CorsPolicy(); 195var policy = new CorsPolicy(); 212var policy = new CorsPolicy(); 230var policy = new CorsPolicy(); 247var policy = new CorsPolicy(); 263var policy = new CorsPolicy(); 280var policy = new CorsPolicy(); 299var policy = new CorsPolicy(); 316var policy = new CorsPolicy(); 339var policy = new CorsPolicy(); 360var policy = new CorsPolicy 379var policy = new CorsPolicy 399var policy = new CorsPolicy 419var policy = new CorsPolicy 439var policy = new CorsPolicy(); 461var policy = new CorsPolicy(); 479var policy = new CorsPolicy(); 502var policy = new CorsPolicy(); 525var policy = new CorsPolicy(); 545var policy = new CorsPolicy(); 908var policy = new CorsPolicy(); 926var policy = new CorsPolicy();
DefaultCorsPolicyProviderTests.cs (2)
16var policy = new CorsPolicy(); 36var policy = new CorsPolicy();
Microsoft.AspNetCore.Mvc.Cors.Test (1)
CorsAuthorizationFilterTest.cs (1)
121.Returns(Task.FromResult(new CorsPolicy()));