write a js, in the webpack project for vue to use.
whether it is on jsonp (npm or fetch-jsonp (package on github), an error is reported.
js is as follows:
fetchJsonp(resourceUrl).then(function (response) {
return response.json()
}).then(function (json) {
console.log(json)
}).catch(function (ex) {
console.error(ex)
})
saw that the request was sent, and the result was obtained, but the error was reported all the time:
Error: JSONP request to ******** timed out
at eval (fetch-jsonp.js?4706:85)