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