4 writes to VaryByOrigin
Microsoft.AspNetCore.Cors (2)
Infrastructure\CorsService.cs (2)
103
result.
VaryByOrigin
= policy.SupportsCredentials;
109
result.
VaryByOrigin
= policy.Origins.Count > 1 || !policy.IsDefaultIsOriginAllowed;
Microsoft.AspNetCore.Cors.Test (2)
CorsServiceTests.cs (2)
643
VaryByOrigin
= true
663
VaryByOrigin
= true
7 references to VaryByOrigin
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsService.cs (1)
203
if (result.
VaryByOrigin
)
Microsoft.AspNetCore.Cors.Test (6)
CorsServiceTests.cs (6)
44
Assert.False(result.
VaryByOrigin
);
186
Assert.False(result.
VaryByOrigin
);
203
Assert.False(result.
VaryByOrigin
);
221
Assert.True(result.
VaryByOrigin
);
238
Assert.True(result.
VaryByOrigin
);
917
Assert.True(result.
VaryByOrigin
);