Add option to whitelist allowed HTTP methods.