Fix xhr issue on chrome