Added cross domain on the api functions.