Skip to content
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

Closed
mwolson opened this issue Mar 18, 2017 · 1 comment
Closed

Support for retrying failed CORS requests #1194

mwolson opened this issue Mar 18, 2017 · 1 comment

Comments

@mwolson
Copy link
Contributor

mwolson commented 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.
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)
@mwolson
Copy link
Contributor Author

mwolson commented Mar 18, 2017

Fixed in acaf84d

@mwolson mwolson closed this as completed Mar 18, 2017
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant