Fix IE8/IE9 bug that may cause hanging cross-domain requests.

See: http://stackoverflow.com/a/9928073/3949247
Merge pull request #224 from asavoy/patch-1

Fix IE8/IE9 bug that may cause hanging cross-domain requests.