API: update basic-auth tests to allow OPTIONS

This commit is contained in:
Hector Sanjuan 2021-12-22 14:06:29 +01:00
parent bba410af32
commit c71e42f5ad

View File

@ -408,9 +408,9 @@ func TestBasicAuth(t *testing.T) {
checker: assertHTTPStatusIsUnauthoriazed,
},
{
method: "OPTIONS",
method: "OPTIONS", // Always allowed for CORS
path: "/foo",
checker: assertHTTPStatusIsUnauthoriazed,
checker: makeHTTPStatusNegatedAssert(assertHTTPStatusIsUnauthoriazed),
},
{
method: "PUT",