first api call to foreign domain working