Fixed CORS handling issue on IE8/IE9