Added support for CORS+OPTIONS on the documents resource