superagent icon indicating copy to clipboard operation
superagent copied to clipboard

Triggering OPTIONS preflight in firefox

Open rralian opened this issue 12 years ago • 2 comments

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

rralian avatar Aug 15 '14 17:08 rralian

Seems that FF won't fix this. I think we should only set progress if you actually are uploading something to avoid this issue.

defunctzombie avatar Dec 22 '14 08:12 defunctzombie

See also #548.

mdawaffe avatar Feb 19 '15 19:02 mdawaffe