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

Added a config option I found useful.