22 references to WithOrigins
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
211
builder.
WithOrigins
(corsOptions.AllowedOrigins.Split(',', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries));
302
builder.
WithOrigins
(_frontendEndPointAccessor.Select(accessor => accessor().GetResolvedAddress()).ToArray());
CorsMiddlewareWebSite (1)
Startup.cs (1)
15
app.UseCors(policy => policy.
WithOrigins
("http://example.com"));
CorsWebSite (4)
Startup.cs (4)
28
builder.
WithOrigins
("http://example.com");
36
.
WithOrigins
("http://example.com");
44
.
WithOrigins
("http://example.com")
66
.
WithOrigins
("http://example.com");
Microsoft.AspNetCore.Cors (3)
Infrastructure\CorsPolicyBuilder.cs (3)
19
/// <remarks> <see cref="
WithOrigins
(string[])"/> for details on normalizing the origin value.</remarks>
22
WithOrigins
(origins);
247
WithOrigins
(policy.Origins.ToArray());
Microsoft.AspNetCore.Cors.Test (12)
CorsMiddlewareTests.cs (9)
35
builder.
WithOrigins
(OriginUrl)
75
builder.
WithOrigins
(OriginUrl)
303
builder.
WithOrigins
(OriginUrl)
346
builder.
WithOrigins
(OriginUrl)
458
.
WithOrigins
(OriginUrl)
467
.
WithOrigins
("http://test.example.com")
519
builder.
WithOrigins
(OriginUrl)
594
builder.
WithOrigins
(OriginUrl)
645
.
WithOrigins
(OriginUrl)
CorsPolicyBuilderTests.cs (3)
118
builder.
WithOrigins
("http://example.com", "http://example2.com");
145
Assert.Throws<ArgumentNullException>(() => builder.
WithOrigins
(args));
156
Assert.Throws<ArgumentNullException>(() => builder.
WithOrigins
(args));