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