Added x-domain middleware