Closed tingwind closed 9 years ago
Hi,
can you send me your configuration and a small html/js which reproduce the problem. I'm not sure but POST should not have crossdomain issues, but I will test asap
after my test, it is not work under ie8, when crossdomain. it is just javascript issue, just same with chat.html but change:
for example: the html url is: http://a.test.com/examples/chat.html
the js part:
var pushstream = new PushStream({ host: "b.test.com", port: 9080, modes: "websocket|eventsource|stream" });
Sorry for responsing so late. days ago i am not clearly understand how your code working, now i am very sure this is a pure ajax CORS problem, there is none business to communicate mode choosed, sorry for my misunderstanding. It happens at sendMessage, sendMessage only has two situations websocket or not socket. Not scoket both use Ajax to post message. About CORS problem i suppose i have described clearly in first post. at last thanks a lot for your great work, this module works fine on our project.
On IE8 posting a cross-domain request needs using "XDomainRequest" object, but IE8 contains both "XMLHttpRequest" and "XDomainRequest", now let's have a look in the code
So actually XDomainRequest instance will never be created. In the following part we see this
but XDomainRequest on IE8 doesn't support these two methods.
I modified these snippets then cross-domain stream on ie8 works, I am not sure this is a bug or is there any thing i have missed ?