Add an options object, and support for extra allowed headers.