6 writes to PreflightMaxAge
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsPolicyBuilder.cs (1)
197
_policy.
PreflightMaxAge
= preflightMaxAge;
Microsoft.AspNetCore.Cors.Test (5)
CorsPolicyBuilderTests.cs (1)
19
originalPolicy.
PreflightMaxAge
= TimeSpan.FromSeconds(12);
CorsPolicyTests.cs (2)
50
policy.
PreflightMaxAge
= TimeSpan.FromSeconds(-12);
65
PreflightMaxAge
= TimeSpan.FromSeconds(12),
CorsServiceTests.cs (2)
401
PreflightMaxAge
= null
421
PreflightMaxAge
= TimeSpan.FromSeconds(10)
11 references to PreflightMaxAge
Microsoft.AspNetCore.Cors (5)
Infrastructure\CorsPolicy.cs (2)
156
builder.Append(
PreflightMaxAge
.HasValue ?
157
PreflightMaxAge
.Value.TotalSeconds.ToString(CultureInfo.InvariantCulture) : "null");
Infrastructure\CorsPolicyBuilder.cs (2)
253
if (policy.
PreflightMaxAge
.HasValue)
255
SetPreflightMaxAge(policy.
PreflightMaxAge
.Value);
Infrastructure\CorsService.cs (1)
113
result.PreflightMaxAge = policy.
PreflightMaxAge
;
Microsoft.AspNetCore.Cors.Test (6)
CorsPolicyBuilderTests.cs (5)
40
Assert.Equal(TimeSpan.FromSeconds(12), corsPolicy.
PreflightMaxAge
);
57
Assert.Null(corsPolicy.
PreflightMaxAge
);
84
Assert.Null(corsPolicy.
PreflightMaxAge
);
108
Assert.Null(corsPolicy.
PreflightMaxAge
);
302
Assert.Equal(TimeSpan.FromSeconds(12), corsPolicy.
PreflightMaxAge
);
CorsPolicyTests.cs (1)
23
Assert.Null(corsPolicy.
PreflightMaxAge
);