Various hacks for IE8,9 CORS support