-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for retrying failed CORS requests #1194
Comments
mwolson
pushed a commit
to mwolson/superagent
that referenced
this issue
Mar 18, 2017
When using the retry() functionality on a bad connection, the browser can sometimes fail during a CORS OPTIONS request, which currently doesn't get retried. Superagent throws an error with crossDomain: true property in this case. We should retry instead, since the next attempt might succeed.
mwolson
pushed a commit
to mwolson/superagent
that referenced
this issue
Mar 18, 2017
When using the retry() functionality on a bad connection, the browser can sometimes fail during a CORS OPTIONS request, which currently doesn't get retried. Superagent throws an error with crossDomain: true property in this case. We should retry instead, since the next attempt might succeed.
mwolson
pushed a commit
to mwolson/superagent
that referenced
this issue
Mar 18, 2017
When using the retry() functionality on a bad connection, the browser can sometimes fail during a CORS OPTIONS request, which currently doesn't get retried. Superagent throws an error with crossDomain: true property in this case. We should retry instead, since the next attempt might succeed.
kornelski
added a commit
that referenced
this issue
Mar 18, 2017
Allow crossDomain errors to be retried (#1194)
Fixed in acaf84d |
kornelski
added a commit
that referenced
this issue
Mar 18, 2017
* master: v3.5.1 Quicker test docs: Document the retry() method Allow crossDomain errors to be retried (#1194) Read responseType property from the correct object Check for ownProperty before adding header
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using the retry() functionality on a bad connection, the browser can sometimes fail during a CORS OPTIONS request, which currently doesn't get retried. Superagent throws an error with crossDomain: true property in this case. We should retry instead, since the next attempt might succeed.
The text was updated successfully, but these errors were encountered: