3 writes to AllowedExposedHeaders
Microsoft.AspNetCore.Cors.Test (3)
CorsServiceTests.cs (3)
807
AllowedExposedHeaders
= { "foo", "bar" },
828
AllowedExposedHeaders
= { "foo", "bar" },
848
AllowedExposedHeaders
= { "foo" },
11 references to AllowedExposedHeaders
Microsoft.AspNetCore.Cors (4)
Infrastructure\CorsResult.cs (1)
93
builder.AppendJoin(",",
AllowedExposedHeaders
);
Infrastructure\CorsService.cs (3)
116
AddHeaderValues(result.
AllowedExposedHeaders
, policy.ExposedHeaders);
197
if (result.
AllowedExposedHeaders
.Count > 0)
199
headers.SetCommaSeparatedValues(CorsConstants.AccessControlExposeHeaders, result.
AllowedExposedHeaders
.ToArray());
Microsoft.AspNetCore.Cors.Test (5)
CorsResultTests.cs (2)
16
Assert.Empty(result.
AllowedExposedHeaders
);
51
corsResult.
AllowedExposedHeaders
.Add("foo");
CorsServiceTests.cs (3)
254
Assert.Empty(result.
AllowedExposedHeaders
);
271
Assert.Equal(new[] { "foo" }, result.
AllowedExposedHeaders
);
290
Assert.Equal(new[] { "foo", "bar", "baz" }, result.
AllowedExposedHeaders
);
Microsoft.AspNetCore.Mvc.Cors.Test (2)
CorsAuthorizationFilterTest.cs (2)
206
headers.Add(CorsConstants.AccessControlExposeHeaders, result1.
AllowedExposedHeaders
.ToArray());
250
AddRange(result.
AllowedExposedHeaders
, exposedHeaders);