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