You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Suppose an http POST to a different origin. This implies CORS, including a CORS preflight exchange. Now suppose the OPTIONS request returns a 500 error due to a server problem. In this case the error handler gives "" for data and 0 for status.
Seems wrong.
$http.post(myUrl, loginPayload, loginHttpConfig)
.success(function (response) {
....
})
.error(function(data, status, headers, config) {
// In the event of a 500 response from the implicit OPTIONS
// request for CORS preflight, data ="", and status=0. This
// seems wrong.
});