29 references to OriginUrl
Microsoft.AspNetCore.Cors.Test (29)
CorsMiddlewareTests.cs (29)
35builder.WithOrigins(OriginUrl) 52.AddHeader(CorsConstants.Origin, OriginUrl) 59Assert.Equal(OriginUrl, response.Headers.GetValues(CorsConstants.AccessControlAllowOrigin).FirstOrDefault()); 75builder.WithOrigins(OriginUrl) 94.AddHeader(CorsConstants.Origin, OriginUrl) 101Assert.Equal(OriginUrl, response.Headers.GetValues(CorsConstants.AccessControlAllowOrigin).FirstOrDefault()); 113policy.Origins.Add(OriginUrl); 145.AddHeader(CorsConstants.Origin, OriginUrl) 151Assert.Equal(OriginUrl, response.Headers.GetValues(CorsConstants.AccessControlAllowOrigin).FirstOrDefault()); 160policy.Origins.Add(OriginUrl); 194.AddHeader(CorsConstants.Origin, OriginUrl) 215Assert.Equal(new[] { OriginUrl }, kvp.Value); 224var policy = new CorsPolicyBuilder(OriginUrl) 259.AddHeader(CorsConstants.Origin, OriginUrl) 286Assert.Equal(new[] { OriginUrl }, kvp.Value); 303builder.WithOrigins(OriginUrl) 346builder.WithOrigins(OriginUrl) 458.WithOrigins(OriginUrl) 481.AddHeader(CorsConstants.Origin, OriginUrl) 502Assert.Equal(new[] { OriginUrl }, kvp.Value); 519builder.WithOrigins(OriginUrl) 539.AddHeader(CorsConstants.Origin, OriginUrl) 549Assert.Equal(OriginUrl, Assert.Single(kvp.Value)); 594builder.WithOrigins(OriginUrl) 615.AddHeader(CorsConstants.Origin, OriginUrl) 627Assert.Equal(OriginUrl, Assert.Single(kvp.Value)); 645.WithOrigins(OriginUrl) 659httpContext.Request.Headers.Add(CorsConstants.Origin, new[] { OriginUrl }); 677Assert.Equal(OriginUrl, Assert.Single(kvp.Value));