Add support to JSONP and CORS.