title: Getting response after redirect in the ajax call
body: <p>I have a ajax call to an external url which returns a json object. The external service needs a key which I dont want to leave as text in the javascript. So I decided to route the ajax call  to spring controller where I can append the keys to the url(hiding the keys from the external world) before doing the redirect.
  But after doing the redirect I am not able to get the response(in my case json objects) in the ajax call. </p>
  
  <p>My ajax call</p>
  
  <pre><code>http_request.open("GET", "search.html", true);
  if (http_request.readyState == done &amp;&amp; http_request.status == ok) {
  ...
  }
  </code></pre>
  
  <p>My controller</p>
  
  <pre><code>@RequestMapping("/search")
  public class SearchController  {
  
      @RequestMapping(method = RequestMethod.GET) 
      public String search(){
          return "redirect:http://www.xyz.com?key=myKey";
      }
  }
  </code></pre>