1 write to AllowedMethods
Microsoft.AspNetCore.Cors.Test (1)
CorsServiceTests.cs (1)
725
AllowedMethods
= { "PUT" }
16 references to AllowedMethods
Microsoft.AspNetCore.Cors (4)
Infrastructure\CorsResult.cs (1)
99
builder.AppendJoin(",",
AllowedMethods
);
Infrastructure\CorsService.cs (3)
121
AddHeaderValues(result.
AllowedMethods
, allowedMethods);
183
if (result.
AllowedMethods
.Count > 0)
185
headers.SetCommaSeparatedValues(CorsConstants.AccessControlAllowMethods, result.
AllowedMethods
.ToArray());
Microsoft.AspNetCore.Cors.Test (10)
CorsResultTests.cs (2)
17
Assert.Empty(result.
AllowedMethods
);
54
corsResult.
AllowedMethods
.Add("GET");
CorsServiceTests.cs (8)
307
Assert.Equal(new[] { "GET" }, result.
AllowedMethods
);
325
Assert.Equal(new[] { "PUT" }, result.
AllowedMethods
);
447
Assert.Equal(new[] { "GET" }, result.
AllowedMethods
);
470
Assert.Equal(new[] { "PUT", "DELETE" }, result.
AllowedMethods
);
489
Assert.Equal(new[] { "PUT" }, result.
AllowedMethods
);
512
Assert.Equal(new[] { "PUT" }, result.
AllowedMethods
);
536
Assert.Equal(new[] { "PUT" }, result.
AllowedMethods
);
556
Assert.Equal(new[] { "PUT" }, result.
AllowedMethods
);
Microsoft.AspNetCore.Mvc.Cors.Test (2)
CorsAuthorizationFilterTest.cs (2)
205
headers.Add(CorsConstants.AccessControlAllowMethods, result1.
AllowedMethods
.ToArray());
245
AddRange(result.
AllowedMethods
, methods);