title: Signalr CORS issue
body: <p>On my server side I'm using web api 2 with signalr.
  On my client side I'm using angularjs.</p>
  
  <p>Here's the http request when I initiate the signalr connection:</p>
  
  <pre><code>&gt; GET
  &gt; http://example.com/signalr/negotiate?clientProtocol=1.4&amp;connectionData=%5B%7B%22name%22%3A%22main%22%7D%5D&amp;_=1416702959615 HTTP/1.1 Host: mysite.net Connection: keep-alive Pragma: no-cache
  &gt; Cache-Control: no-cache Accept: text/plain, */*; q=0.01 Origin:
  &gt; http://lh:51408 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64)
  &gt; AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.65
  &gt; Safari/537.36 Content-Type: application/x-www-form-urlencoded;
  &gt; charset=UTF-8 Referer: http://localhost:51408/ Accept-Encoding: gzip,
  &gt; deflate, sdch Accept-Language: en-US,en;q=0.8 Cookie:
  &gt; ARRAffinity=9def17406de898acdc2839d0ec294473084bbc94a8f600c867975ede6f136080
  </code></pre>
  
  <p>And the response:</p>
  
  <pre><code>&gt; HTTP/1.1 200 OK Cache-Control: no-cache Pragma: no-cache
  &gt; Transfer-Encoding: chunked Content-Type: application/json;
  &gt; charset=UTF-8 Expires: -1 Server: Microsoft-IIS/8.0
  &gt; X-Content-Type-Options: nosniff X-AspNet-Version: 4.0.30319
  &gt; X-Powered-By: ASP.NET Date: Sun, 23 Nov 2014 00:36:13 GMT
  &gt; 
  &gt; 187
  &gt; {"Url":"/signalr","ConnectionToken":"6BKcLqjNPyOw4ptdPKg8jRi7xVlPMEgFUdzeJZso2bnXliwfY4WReQWHRpmB5YEZsbg14Au7AS5k5xS5/4qVheDxYoUkOjfFW0W8eAQsasjBaSQOifIilniU/L7XQ1+Y","ConnectionId":"f2fc7c47-c84f-49b8-a080-f91346dfbda7","KeepAliveTimeout":20.0,"DisconnectTimeout":30.0,"ConnectionTimeout":110.0,"TryWebSockets":true,"ProtocolVersion":"1.4","TransportConnectTimeout":5.0,"LongPollDelay":0.0}
  &gt; 0
  </code></pre>
  
  <p>However, in my javascript I'm getting the following error response when connecting:</p>
  
  <pre><code>No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhos:51408' is therefore not allowed access.
  </code></pre>
  
  <p>On my server side my startup method looks the following:</p>
  
  <pre><code>public void Configuration(IAppBuilder app)
  {
      System.Web.Mvc.AreaRegistration.RegisterAllAreas();
      ConfigureOAuth(app);
      GlobalConfiguration.Configure(WebApiConfig.Register);
      app.UseCors(Microsoft.Owin.Cors.CorsOptions.AllowAll);
  }
  </code></pre>
  
  <p>Shouldn't this make sure that cors is used in signalr too or am I missing something?</p>