19 references to ExposedHeaders
Microsoft.AspNetCore.Cors (4)
Infrastructure\CorsPolicy.cs (1)
170builder.AppendJoin(",", ExposedHeaders);
Infrastructure\CorsPolicyBuilder.cs (2)
115_policy.ExposedHeaders.Add(req); 249WithExposedHeaders(policy.ExposedHeaders.ToArray());
Infrastructure\CorsService.cs (1)
116AddHeaderValues(result.AllowedExposedHeaders, policy.ExposedHeaders);
Microsoft.AspNetCore.Cors.Test (15)
CorsMiddlewareTests.cs (1)
163policy.ExposedHeaders.Add("AllowedHeader");
CorsPolicyBuilderTests.cs (9)
17originalPolicy.ExposedHeaders.Add("ExistingExposed"); 38Assert.NotSame(originalPolicy.ExposedHeaders, corsPolicy.ExposedHeaders); 39Assert.Equal(originalPolicy.ExposedHeaders, corsPolicy.ExposedHeaders); 65Assert.Empty(corsPolicy.ExposedHeaders); 80Assert.Empty(corsPolicy.ExposedHeaders); 104Assert.Empty(corsPolicy.ExposedHeaders); 288Assert.Equal(new List<string>() { "exposed1", "exposed2" }, corsPolicy.ExposedHeaders);
CorsPolicyTests.cs (1)
19Assert.Empty(corsPolicy.ExposedHeaders);
CorsServiceTests.cs (4)
265policy.ExposedHeaders.Add("foo"); 282policy.ExposedHeaders.Add("foo"); 283policy.ExposedHeaders.Add("bar"); 284policy.ExposedHeaders.Add("baz");