30 instantiations of CorsPolicyBuilder
Microsoft.AspNetCore.Cors (3)
Infrastructure\CorsEndpointConventionBuilderExtensions.cs (1)
58
var policyBuilder = new
CorsPolicyBuilder
();
Infrastructure\CorsMiddlewareExtensions.cs (1)
51
var policyBuilder = new
CorsPolicyBuilder
();
Infrastructure\CorsOptions.cs (1)
75
var policyBuilder = new
CorsPolicyBuilder
();
Microsoft.AspNetCore.Cors.Test (27)
CorsMiddlewareTests.cs (6)
224
var policy = new
CorsPolicyBuilder
(OriginUrl)
644
var policy = new
CorsPolicyBuilder
()
806
var policy = new
CorsPolicyBuilder
().Build();
837
var defaultPolicy = new
CorsPolicyBuilder
().Build();
838
var metadataPolicy = new
CorsPolicyBuilder
().Build();
875
var policy = new
CorsPolicyBuilder
().Build();
CorsPolicyBuilderTests.cs (21)
23
var builder = new
CorsPolicyBuilder
(originalPolicy);
52
var builder = new
CorsPolicyBuilder
(originalPolicy);
72
var builder = new
CorsPolicyBuilder
();
96
var builder = new
CorsPolicyBuilder
(origins);
115
var builder = new
CorsPolicyBuilder
();
130
var builder = new
CorsPolicyBuilder
("http://www.EXAMPLE.com", "HTTPS://example2.com");
141
var builder = new
CorsPolicyBuilder
();
152
var builder = new
CorsPolicyBuilder
();
163
var builder = new
CorsPolicyBuilder
();
178
var builder = new
CorsPolicyBuilder
();
193
var builder = new
CorsPolicyBuilder
("http://*.example.com");
207
var builder = new
CorsPolicyBuilder
("http://*.example.com");
221
var builder = new
CorsPolicyBuilder
();
236
var builder = new
CorsPolicyBuilder
();
251
var builder = new
CorsPolicyBuilder
();
266
var builder = new
CorsPolicyBuilder
();
281
var builder = new
CorsPolicyBuilder
();
295
var builder = new
CorsPolicyBuilder
();
309
var builder = new
CorsPolicyBuilder
();
323
var builder = new
CorsPolicyBuilder
();
337
var builder = new
CorsPolicyBuilder
()
49 references to CorsPolicyBuilder
Microsoft.AspNetCore.Cors (22)
Infrastructure\CorsEndpointConventionBuilderExtensions.cs (2)
53
public static TBuilder RequireCors<TBuilder>(this TBuilder builder, Action<
CorsPolicyBuilder
> configurePolicy) where TBuilder : IEndpointConventionBuilder
58
var
policyBuilder = new CorsPolicyBuilder();
Infrastructure\CorsMiddlewareExtensions.cs (2)
46
Action<
CorsPolicyBuilder
> configurePolicy)
51
var
policyBuilder = new CorsPolicyBuilder();
Infrastructure\CorsOptions.cs (3)
45
public void AddDefaultPolicy(Action<
CorsPolicyBuilder
> configurePolicy)
70
public void AddPolicy(string name, Action<
CorsPolicyBuilder
> configurePolicy)
75
var
policyBuilder = new CorsPolicyBuilder();
Infrastructure\CorsPolicyBuilder.cs (15)
16
/// Creates a new instance of the <see cref="
CorsPolicyBuilder
"/>.
26
/// Creates a new instance of the <see cref="
CorsPolicyBuilder
"/>.
54
public
CorsPolicyBuilder
WithOrigins(params string[] origins)
97
public
CorsPolicyBuilder
WithHeaders(params string[] headers)
111
public
CorsPolicyBuilder
WithExposedHeaders(params string[] exposedHeaders)
126
public
CorsPolicyBuilder
WithMethods(params string[] methods)
140
public
CorsPolicyBuilder
AllowCredentials()
150
public
CorsPolicyBuilder
DisallowCredentials()
160
public
CorsPolicyBuilder
AllowAnyOrigin()
171
public
CorsPolicyBuilder
AllowAnyMethod()
182
public
CorsPolicyBuilder
AllowAnyHeader()
195
public
CorsPolicyBuilder
SetPreflightMaxAge(TimeSpan preflightMaxAge)
206
public
CorsPolicyBuilder
SetIsOriginAllowed(Func<string, bool> isOriginAllowed)
218
public
CorsPolicyBuilder
SetIsOriginAllowedToAllowWildcardSubdomains()
243
private
CorsPolicyBuilder
Combine(CorsPolicy policy)
Microsoft.AspNetCore.Cors.Test (27)
CorsPolicyBuilderTests.cs (27)
23
var
builder = new CorsPolicyBuilder(originalPolicy);
52
var
builder = new CorsPolicyBuilder(originalPolicy);
72
var
builder = new CorsPolicyBuilder();
96
var
builder = new CorsPolicyBuilder(origins);
115
var
builder = new CorsPolicyBuilder();
130
var
builder = new CorsPolicyBuilder("http://www.EXAMPLE.com", "HTTPS://example2.com");
141
var
builder = new CorsPolicyBuilder();
152
var
builder = new CorsPolicyBuilder();
163
var
builder = new CorsPolicyBuilder();
178
var
builder = new CorsPolicyBuilder();
193
var
builder = new CorsPolicyBuilder("http://*.example.com");
207
var
builder = new CorsPolicyBuilder("http://*.example.com");
221
var
builder = new CorsPolicyBuilder();
236
var
builder = new CorsPolicyBuilder();
251
var
builder = new CorsPolicyBuilder();
266
var
builder = new CorsPolicyBuilder();
281
var
builder = new CorsPolicyBuilder();
295
var
builder = new CorsPolicyBuilder();
309
var
builder = new CorsPolicyBuilder();
323
var
builder = new CorsPolicyBuilder();
337
var
builder = new CorsPolicyBuilder()
355
var normalizedOrigin =
CorsPolicyBuilder
.GetNormalizedOrigin(origin);
368
var normalizedOrigin =
CorsPolicyBuilder
.GetNormalizedOrigin(origin);
381
var normalizedOrigin =
CorsPolicyBuilder
.GetNormalizedOrigin(origin);
394
var normalizedOrigin =
CorsPolicyBuilder
.GetNormalizedOrigin(origin);
406
var normalizedOrigin =
CorsPolicyBuilder
.GetNormalizedOrigin(origin);
421
var normalizedOrigin =
CorsPolicyBuilder
.GetNormalizedOrigin(origin);