solved the cross domain issue