title: Calling JIRA REST Api from Javascript in local HTML file
body: <p>I´m trying to call JIRA REST Api from javascript in HTML running locally by using jQuery.ajax function like below:</p>
  
  <pre><code>$.ajax({
      type: "GET",
      url: "http://jira.myhost.com/rest/api/2/issue/AB-123",
      dataType: "json",
      contentType: "application/json",
      async: false,
      beforeSend: function (xhr) {
          var base64 = "YWRtaW46YWRtaW4";
          xhr.withCredentials = true;
          xhr.setRequestHeader("Authorization", "Basic " + base64);
      }
  })
  .fail(function (error) {
      console.log(error.statusText)
  });
  </code></pre>
  
  <p>When opening HTML file in Chrome I get following error in console:</p>
  
  <pre><code>NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://jira.myhost.com/rest/api/2/issue/AB-123'.
  </code></pre>
  
  <p>However, I can successfully access the same JIRA REST Api by using CURL locally:</p>
  
  <pre><code>curl -D- -X GET -H "Authorization: Basic YWRtaW46YWRtaW4" -H "Content-Type: application/json" "http://jira.myhost.com/rest/api/2/issue/AB-123"
  </code></pre>
  
  <p>Any tip on how to get this working from JavaScript?</p>