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

See: http://stackoverflow.com/a/9928073/3949247