Vue-resource: IE9 cant get response data

Created on 22 Jun 2016  ·  5Comments  ·  Source: pagekit/vue-resource

i read code, vue-resource use XDomainRequest when brower is ie9, but ie9 cant get any data in response, so, i change code var supportCors = 'withCredentials' in new XMLHttpRequest(); to var supportCors = true;, then it work!!!

Most helpful comment

I also have this problem ! +1

i found that in IE9 when you send a cross domain request , i can't get data in the success callback
but it is in the error callback . that's very strange!

All 5 comments

+1

I also have this problem ! +1

i found that in IE9 when you send a cross domain request , i can't get data in the success callback
but it is in the error callback . that's very strange!

do you mean you change the source vue-resource source code?

我也遇到同样的问题,在IE9上请问怎么解决?

@hellove2017 别用这个库了,建议使用axios

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Dreampie picture Dreampie  ·  3Comments

laizhenhai88 picture laizhenhai88  ·  4Comments

gbhlwm picture gbhlwm  ·  5Comments

jiyifun picture jiyifun  ·  3Comments

EmilMoe picture EmilMoe  ·  5Comments