oyvindkinsey/easyXDM — Issue #162: current cors/index.html doesn't work with IE 6
Author: dzrhythm
Created: 2012-03-06 19:13:28+00:00
State: open

There is a bug that affects IE6 in the current cors/index.html on line 87:

if (!XMLHttpRequest || !('withCredentials' in (new XMLHttpRequest))) {

XMLHttpRequest is undefined in IE6.
One fix is to change XMLHttpRequest to window.XMLHttpRequest:

if (!window.XMLHttpRequest || !('withCredentials' in (new window.XMLHttpRequest))) {

Thanks.