title: GET working with Postman, but not with Ajax?
body: <p>I'm attempting to do a simple GET request from a server hosting some account data. The request requires an Authorization header in order to function correctly. I have performed the GET request and retrieved the data successfully in Postman, but attempting to do so in Javascript via Ajax results in a "Invalid HTTP status code 405" error.</p>
  
  <p>Below is a link to a fiddle and a screenshot of the Postman settings. Thanks.!</p>
  
  <pre><code>$.ajax({
      beforeSend: function(xhrObj){
              xhrObj.setRequestHeader("Authorization","Bearer tj7LTLycpQC6DRup5BkHUO7uVbYaAZI40");
      },
      type: "GET",
      url: "https://api05.iq.questrade.com/v1/accounts",
      success: function(e){
              console.log(e)
      }
  });
  </code></pre>
  
  <p><a href="http://jsfiddle.net/Ldjbp2j8/1/" rel="noreferrer">http://jsfiddle.net/Ldjbp2j8/1/</a></p>
  
  <p><a href="http://i.stack.imgur.com/lWjf7.png" rel="noreferrer">POSTMAN SETTINGS</a></p>