Use resolved url protocol from XHR by default