title: Cant get redirect to work in Asp.net WebApi
body: <p>I have a webapi controller that redirects:</p>
  
  <pre><code> var response = this.Request.CreateResponse(HttpStatusCode.Redirect);
  
   response.Headers.Add("Location",
       "https://www.dropbox.com/1/oauth/authorize?oauth_token=" + pars["oauth_token"]
       + "&amp;oauth_callback=http://localhost:2638/index.html#/tasks/compose-task/");
  
   return response;
  </code></pre>
  
  <p>and call it from javascript:</p>
  
  <pre><code>    $.ajax("/api/dropbox/get_request_token", { dataType: 'json' })
      .done(function (data)
      {
          alert(ko.toJSON(data));
      })
      .fail(function (err) {alert(ko.toJSON(err));});
  </code></pre>
  
  <p>The network tab shows:</p>
  
  <pre><code>GET http://localhost:2638/api/dropbox/get_request_token HTTP/1.1
  Accept: application/json, text/javascript, */*; q=0.01
  Referer: http://localhost:2638/
  X-Requested-With: XMLHttpRequest
  User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.20 (KHTML, like Gecko) Chrome/25.0.1337.0 Safari/537.20
  </code></pre>
  
  <p>but it never redirects to dropbox.com. instead it ends up in the fail().</p>
  
  <p>Am i missing something?</p>