1 write to AllowedHeaders
Microsoft.AspNetCore.Cors.Test (1)
CorsServiceTests.cs (1)
766
AllowedHeaders
= { "foo" }
13 references to AllowedHeaders
Microsoft.AspNetCore.Cors (4)
Infrastructure\CorsResult.cs (1)
96
builder.AppendJoin(",",
AllowedHeaders
);
Infrastructure\CorsService.cs (3)
126
AddHeaderValues(result.
AllowedHeaders
, allowedHeaders);
178
if (result.
AllowedHeaders
.Count > 0)
180
headers.SetCommaSeparatedValues(CorsConstants.AccessControlAllowHeaders, result.
AllowedHeaders
.ToArray());
Microsoft.AspNetCore.Cors.Test (7)
CorsResultTests.cs (3)
15
Assert.Empty(result.
AllowedHeaders
);
52
corsResult.
AllowedHeaders
.Add("bar");
53
corsResult.
AllowedHeaders
.Add("baz");
CorsServiceTests.cs (4)
488
Assert.Empty(result.
AllowedHeaders
);
511
Assert.Equal(new[] { "foo", "bar" }, result.
AllowedHeaders
);
535
Assert.Equal(new[] { "match", "foo" }, result.
AllowedHeaders
);
557
Assert.Empty(result.
AllowedHeaders
);
Microsoft.AspNetCore.Mvc.Cors.Test (2)
CorsAuthorizationFilterTest.cs (2)
204
headers.Add(CorsConstants.AccessControlAllowHeaders, result1.
AllowedHeaders
.ToArray());
240
AddRange(result.
AllowedHeaders
, headers);