Added support for cross-domain requests