Added cross domain to rest adapter