Use custom XHR function inspired from sdk-access.