Chrome, no response data after OPTIONS request?

前端 未结 2 957
甜味超标
甜味超标 2021-02-05 07:07

I\'m using CORS to fetch some data from an API. All was working well until Chrome update launched a day ago.

Now after an OPTIONS request the subsequent request always r

相关标签:
2条回答
  • 2021-02-05 07:39

    A quick fix, until the module is updated, is to comment out this line in dist/vue-resource.common.js:

    xhr.responseType = 'blob';

    It should be somewhere around line ~1054

    0 讨论(0)
  • 2021-02-05 07:39

    I know this is not a solution (do not upvote), but right click the OPTIONS XHR and REPLAY XHR. It will resend the Ajax call and now there will be an answer.

    I presume there is some async issue with the plugin.

    0 讨论(0)
提交回复
热议问题