我收到错误
XMLHttpRequest cannot load http://127.0.0.1:8099//negotiate?_=1348566460118. Origin http://localhost:49848 is not allowed by Access-Control-Allow-Origin
如果我运行下面的代码
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="Scripts/jquery-1.8.2.js"></script>
<script src="Scripts/jquery.signalR-0.5.3.js"></script>
</head>
<body>
<script type="text/javascript">
jQuery.support.cors = true;
var con = $.connection("http://127.0.0.1:8099/");
$.connection.url = "http://127.0.0.1:8099/signalr";
con.start({ transport: 'auto', xdomain: true }, function () {
console.log('connection started!');
});
</script>
</body>
</html>