18 references to AccessControlAllowOrigin
Microsoft.AspNetCore.Cors.Test (9)
CorsMiddlewareTests.cs (9)
59Assert.Equal(OriginUrl, response.Headers.GetValues(CorsConstants.AccessControlAllowOrigin).FirstOrDefault()); 101Assert.Equal(OriginUrl, response.Headers.GetValues(CorsConstants.AccessControlAllowOrigin).FirstOrDefault()); 151Assert.Equal(OriginUrl, response.Headers.GetValues(CorsConstants.AccessControlAllowOrigin).FirstOrDefault()); 214Assert.Equal(CorsConstants.AccessControlAllowOrigin, kvp.Key); 285Assert.Equal(CorsConstants.AccessControlAllowOrigin, kvp.Key); 501Assert.Equal(CorsConstants.AccessControlAllowOrigin, kvp.Key); 548Assert.Equal(CorsConstants.AccessControlAllowOrigin, kvp.Key); 626Assert.Equal(CorsConstants.AccessControlAllowOrigin, kvp.Key); 676Assert.Equal(CorsConstants.AccessControlAllowOrigin, kvp.Key);
Microsoft.AspNetCore.Mvc.Cors.Test (3)
CorsAuthorizationFilterTest.cs (3)
42Assert.Equal("http://example.com", response.Headers[CorsConstants.AccessControlAllowOrigin]); 92Assert.Equal("http://example.com", response.Headers[CorsConstants.AccessControlAllowOrigin]); 198headers[CorsConstants.AccessControlAllowOrigin] = result1.AllowedOrigin;
Microsoft.AspNetCore.Mvc.FunctionalTests (6)
CorsTestsBase.cs (6)
56Assert.Equal(CorsConstants.AccessControlAllowOrigin, header.Key); 141Assert.Equal(CorsConstants.AccessControlAllowOrigin, h.Key); 170responseHeaders.GetValues(CorsConstants.AccessControlAllowOrigin).ToArray()); 203responseHeaders.GetValues(CorsConstants.AccessControlAllowOrigin).ToArray()); 313responseHeaders.GetValues(CorsConstants.AccessControlAllowOrigin).ToArray()); 345responseHeaders.GetValues(CorsConstants.AccessControlAllowOrigin).ToArray());