11 references to AccessControlExposeHeaders
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsService.cs (1)
199
headers.SetCommaSeparatedValues(CorsConstants.
AccessControlExposeHeaders
, result.AllowedExposedHeaders.ToArray());
Microsoft.AspNetCore.Cors.Test (4)
CorsMiddlewareTests.cs (3)
102
Assert.Equal("AllowedHeader", response.Headers.GetValues(CorsConstants.
AccessControlExposeHeaders
).FirstOrDefault());
553
Assert.Equal(CorsConstants.
AccessControlExposeHeaders
, kvp.Key);
631
Assert.Equal(CorsConstants.
AccessControlExposeHeaders
, kvp.Key);
CorsServiceTests.cs (1)
838
Assert.Equal("foo,bar", httpContext.Response.Headers[CorsConstants.
AccessControlExposeHeaders
]);
Microsoft.AspNetCore.Mvc.Cors.Test (4)
CorsAuthorizationFilterTest.cs (4)
47
Assert.Equal("exposed1,exposed2", response.Headers[CorsConstants.
AccessControlExposeHeaders
]);
93
Assert.Equal("exposed1,exposed2", response.Headers[CorsConstants.
AccessControlExposeHeaders
]);
140
httpContext.Request.Headers.Add(CorsConstants.
AccessControlExposeHeaders
, headers.ExposedHeaders.Split(','));
206
headers.Add(CorsConstants.
AccessControlExposeHeaders
, result1.AllowedExposedHeaders.ToArray());
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
CorsTestsBase.cs (2)
160
request.Headers.Add(CorsConstants.
AccessControlExposeHeaders
, "exposed1,exposed2");
176
responseHeaders.GetValues(CorsConstants.
AccessControlExposeHeaders
).ToArray());