我正在使用SignalR进行应用程序。SignalR IE9跨域请求不起作用
集线器放置在运行带有IIS 8的Windows Server 2012的一台服务器上。 http://mentor.cloudapp.net/mass/rexona/previa/signalr/hubs。
的Signalr成立看起来像这样:
var match;
$(document).ready(function() {
$.connection.hub.loging = true;
match = $.connection.match;
match.client.addMessage = function (message) {
var vm = {
avatar: message.ProfileImageLocation,
content: message.Text,
user: message.UserScreenName,
obj: JSON.stringify(message)
};
alert(vm.obj);
}
$.connection.hub.url = 'http://mentor.cloudapp.net/mass/rexona/previa/signalr';
$.connection.hub.start().done(function() {
match.server.addToGroup("97-987-PP");
}).fail(function() {
//alert("fail!");
});
一切完美的作品在Chrome中,FF,Opera和在IE10,但使用IE9的时候访问它应用失败。
我错过了连接的设置?我是否需要在服务器上启用其他功能才能使用IE9?
谢谢。
你有没有得到这个工作? – stricq