Added in support for CORS.