flip-flop the urls on the cross site origin