solve cross domain problem