SignalR cross domain does not work after updating to 0.5.1
Posted
by
jlp
on Stack Overflow
See other posts from Stack Overflow
or by jlp
Published on 2012-06-23T14:09:15Z
Indexed on
2012/06/23
21:16 UTC
Read the original article
Hit count: 602
My site uses SignalR to communicate cross-domain. It worked great but I updated SignalR from 0.5.0 to 0.5.1 and my site broke.
Here's my script:
function start() {
$.connection.hub.url = "http://otherdomain.com/signalr";
$.connection.hub.start().done(function () {
$.connection.myHub.join();
});
}
When script calls join - I see in Firebug that it is a POST (I believe it shoold be GET (jsonp) since it is cross domain) with no response.
EDIT: I tried $.connection.hub.start({jsonp: true}). Now I have can call server from client but calls from server don't execute on client.
I noticed that there are following calls: negotiate and send whereas locally (the same domain) there are: negotiate, connect, send.
© Stack Overflow or respective owner