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