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