SignalR cross domain does not work in browsers other than IE10

I am writing a web application using cross-domain SignalR. I am using the latest version of SignalR, 1.0.1. The following is the code in the jQuery document ready event:

var connection = $.hubConnection(url);
  var proxy = connection.createHubProxy(hubName);

  connection.start().done(function () {
    proxy.invoke('serverMethod');
  });

I tried to run the application in Opera, Firefox, Chrome and IE 10. My OS is Windows 7. It works well in IE 10 and does not work in other browsers. I changed IE mode using the developer tools in IE 9 and it stopped working. The same code works in all browsers if I use SignalR version 0.5.3.

In the browser developer tools, I found the following HTTP status code in response to a negotiation request: "HTTP / 1.1 403 Forbidden".

Am I missing something? What is the reason it breaks in browsers other than IE 10?

+5
1

, MapHubs .

RouteTable.Routes.MapHubs(new HubConfiguration() { EnableCrossDomain = true });

- IE10 , .

+12

All Articles