Added support for cross-origin requests