Make SockJS requests protocol, host & port independent