softonic / axios-retry

Axios plugin that intercepts failed requests and retries them whenever possible
Other
1.9k stars 167 forks source link

Retry on CORS error #96

Closed Zyles closed 4 years ago

Zyles commented 5 years ago

When I get a CORS or network error it does not seem to retry properly for me.

pixagraphic commented 5 years ago

Same for me. Altought I noticed that a GET Request will be retried, however POST requests that result in CORS errors will not be retried.

I kind of used a dirty workaround with:

retryCondition: function() { return true }

mawrkus commented 4 years ago

Why would you retry on CORS error? The server should be configured adequately to allow your requests or you should use JSONP, if possible.

Zyles commented 4 years ago

Why would you retry on CORS error? The server should be configured adequately to allow your requests or you should use JSONP, if possible.

I don't own the server.

mawrkus commented 4 years ago

Ok, feel free to open a proper issue with more details (Axios version, use case, response from the server and any relevant info).