28 references to Headers
Microsoft.AspNetCore.Cors (9)
Infrastructure\CorsPolicy.cs (4)
33if (Headers == null || Headers.Count != 1 || Headers[0] != CorsConstants.AnyHeader) 167builder.AppendJoin(",", Headers);
Infrastructure\CorsPolicyBuilder.cs (4)
101_policy.Headers.Add(req); 184_policy.Headers.Clear(); 185_policy.Headers.Add(CorsConstants.AnyHeader); 248WithHeaders(policy.Headers.ToArray());
Infrastructure\CorsService.cs (1)
125policy.Headers;
Microsoft.AspNetCore.Cors.Test (19)
CorsMiddlewareTests.cs (1)
162policy.Headers.Add("Header1");
CorsPolicyBuilderTests.cs (10)
15originalPolicy.Headers.Add("Existing"); 32Assert.NotSame(originalPolicy.Headers, corsPolicy.Headers); 33Assert.Equal(originalPolicy.Headers, corsPolicy.Headers); 63Assert.Empty(corsPolicy.Headers); 81Assert.Empty(corsPolicy.Headers); 105Assert.Empty(corsPolicy.Headers); 259Assert.Equal(new List<string>() { "example1", "example2" }, corsPolicy.Headers); 274Assert.Equal(new List<string>() { "*" }, corsPolicy.Headers);
CorsPolicyTests.cs (3)
20Assert.Empty(corsPolicy.Headers); 68corsPolicy.Headers.Add("foo"); 69corsPolicy.Headers.Add("bar");
CorsServiceTests.cs (5)
482policy.Headers.Add(CorsConstants.AnyHeader); 505policy.Headers.Add(CorsConstants.AnyHeader); 528policy.Headers.Add("match"); 529policy.Headers.Add("foo"); 548policy.Headers.Add(CorsConstants.AnyHeader);