fixes #16893, Support native xhr response types when possible