multi domain support for XHR