简体   繁体   中英

unable to set xhr.responseType using chrome 43 beta

I have some request that I'm sending the server, and I'm setting the XMLHttpRequest object I created as follows:

var xhr = new XMLHttpRequest();
xhr.responseType = "blob";

This works just fine on the current chrome 42 version, but when I try to run the same code on chrome 43 beta, the xhr.responseType fails to be set with the value "blob". I tried other kinds of response types but it just doesn't work.

Did anyone faced this issue too? Any suggestions?

Thanks.

It seems we use pdf.js package in our app, which has a compatibility.js file that defines a setter function "responseTypeSetter", that doesn't let us to set the XMLHttpRequest's responseType to 'blob' or anything else.

Upgrading compatibility.js to a newer version had solved this problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM