Response for preflight has invalid HTTP status code 404?
QzhouZ opened this issue · 1 comments
QzhouZ commented
reqwest(
{
url: 'http://firmware.duoxieyun.com/sw/android/cold-chain-platform',
type: 'json',
method: 'get'
}
)
ERROR: Response for preflight has invalid HTTP status code 404?
But I use
$.ajax({
url: 'http://firmware.duoxieyun.com/sw/android/cold-chain-platform',
type: 'json',
method: 'get'
});
It worked well, what is the wrong?
CaitlinWeb commented
I am also having the same issue. The API is working as expected but reqwest thinks it is redirecting. The error I'm getting in console is
Response for preflight is invalid (redirect)
I've tried
headers: {
"Content-Type": "application/x-www-form-urlencoded"
}
and changing other configuration values and nothing seems to help.