superagent
superagent copied to clipboard
Triggering OPTIONS preflight in firefox
We're using CORS to fetch a cross-domain JSON file with superagent via GET request, and we noticed that a simple CORS request that should not trigger a preflight OPTIONS check was still doing so in firefox. It seems to come from the progress check for uploads https://github.com/visionmedia/superagent/blob/master/lib/client.js#L908-L913
Seems that FF won't fix this. I think we should only set progress if you actually are uploading something to avoid this issue.
See also #548.