title: How to use SignalR with cross domain
body: <p>I am trying to use SignalR with cross domain but i am getting error message when calling start function. Error message is <code>"Uncaught TypeError: Cannot call method 'start' of undefined "</code></p>
  
  <p>I am using code 
  Server side:</p>
  
  <pre><code>[assembly: OwinStartup(typeof(SignalRChat.Startup))]
  
      namespace SignalRChat
      {
          public class Startup
          {
              public void Configuration(IAppBuilder app)
              {
                  app.Map("/signalr", map =&gt;
                  {              
                      map.UseCors(CorsOptions.AllowAll);
                      var hubConfiguration = new HubConfiguration
                      {                   
                         EnableJSONP = true
                      };               
                      map.RunSignalR(hubConfiguration);
                  });
              }
          }
      }
  </code></pre>
  
  <p>Client side code.</p>
  
  <pre><code> &lt;!DOCTYPE html&gt;
      &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
      &lt;head&gt;
          &lt;title&gt;&lt;/title&gt;
          &lt;script src="/Scripts/jquery-1.6.4.min.js"&gt;&lt;/script&gt;   
          &lt;script src="/Scripts/jquery.signalR-1.1.4.min.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
         &lt;div&gt;&lt;/div&gt;
         &lt;script type="text/javascript"&gt;
          var connection = $.connection.hub.url ='http://localhost:9370/signalr';      
          connection.hub.start()
            .done(function () {
                alert('Now connected, connection ID=' + connection.id);
            });
        &lt;/script&gt;
        &lt;/body&gt;
        &lt;/html&gt;
  </code></pre>