Add guard against unsupported `method`

to `allow_method`