title: How to make ajax calls across domains?
body: <p>I am using the code below for making an Ajax call.  The call is going to a JAVA controller but is unable to fetch the data, throwing this error:</p>
  
  <pre><code>error: 406 format not supported.
  </code></pre>
  
  <p>I am using spring 4 and sending data in jSON format.</p>
  
  <pre><code>$.ajax({
              type:'GET',
              url:url,
              contentType:"application/json",
              dataType:'jsonp',
              crossDomain:true,
              data:data,
             jsonpCallback: 'jsonpCallback',
              success:fnSuccess,
              error: fnError
          });
  </code></pre>