title: Ajax call error during Rally sdk custom dashboard developement
body: <p>I'm getting 403 exception when I make an ajax call to jenkins api call to get the build details from Rally sdk custom html interface.</p>
  
  <pre><code>        //Ajax api call to jenkins
          var blink ="https://[jenkinshost]/job/Appdev/job/TestProject/api/json";
          Ext.Ajax.request({
              url: blink, 
              method :'GET',
              crossDomain: true,
              withCredentials: true,  
              headers : { 
                  'Authorization': 'Basic dsasfsfxfhfj',
                   'Content-Type': 'application/json;charset=UTF-8',
              },
              success: function(response){
                  var backToJs=JSON.parse(response.responseText);
                      console.log('resp data-',backToJs);
                      //console.log(backToJs['QueryResult'].Results);
  
              },
              failure: function(response) {
                  console.log('jenkins-ajax call failure');
              }
          });
  </code></pre>
  
  <p>ajax call error- </p>
  
  <blockquote>
    <p>Response to preflight request doesn't pass access control check:  No
    'Access-Control-Allow-Origin' header is present on the requested
    resource.  Origin '<a href="https://rally1.rallydev.com" rel="nofollow noreferrer">https://rally1.rallydev.com</a>' is therefore not
    allowed access. The response had HTTP status code 403.</p>
  </blockquote>