6 writes to PreflightMaxAge
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsService.cs (1)
113result.PreflightMaxAge = policy.PreflightMaxAge;
Microsoft.AspNetCore.Cors.Test (4)
CorsResultTests.cs (2)
32result.PreflightMaxAge = TimeSpan.FromSeconds(-1); 48PreflightMaxAge = TimeSpan.FromSeconds(30),
CorsServiceTests.cs (2)
869PreflightMaxAge = TimeSpan.FromSeconds(30), 890PreflightMaxAge = TimeSpan.FromSeconds(30),
Microsoft.AspNetCore.Mvc.Cors.Test (1)
CorsAuthorizationFilterTest.cs (1)
255result.PreflightMaxAge = TimeSpan.FromSeconds(preFlightMaxAge.Value);
8 references to PreflightMaxAge
Microsoft.AspNetCore.Cors (4)
Infrastructure\CorsResult.cs (2)
88builder.Append(PreflightMaxAge.HasValue ? 89PreflightMaxAge.Value.TotalSeconds.ToString(CultureInfo.InvariantCulture) : "null");
Infrastructure\CorsService.cs (2)
188if (result.PreflightMaxAge.HasValue) 190headers.AccessControlMaxAge = result.PreflightMaxAge.Value.TotalSeconds.ToString(CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Cors.Test (3)
CorsResultTests.cs (1)
20Assert.Null(result.PreflightMaxAge);
CorsServiceTests.cs (2)
410Assert.Null(result.PreflightMaxAge); 430Assert.Equal(TimeSpan.FromSeconds(10), result.PreflightMaxAge);
Microsoft.AspNetCore.Mvc.Cors.Test (1)
CorsAuthorizationFilterTest.cs (1)
197result1.PreflightMaxAge.Value.TotalSeconds.ToString(CultureInfo.InvariantCulture);