title: Issue with accessing data from external url- jsonp/json approach not working
body: <p>I have this below code where I am trying to retrieve data from external url. I am getting 401- unauthorized access error when I try to do this. Please Advice</p>
  
  <pre><code>&lt;script type='text/javascript'&gt;
  
  
  
      function checkBlueLight() {
  
          $('#trBlueLight').hide();
  
          $.getJSON('http://.../Lights/getBlueLight?callback=?', function (data) {
              if (data.expDate != null) {
                  $('#trBlueLight').show();
              } else {
                  $('#trBlueLight').hide();
              }
          });
          }
  
  
  
      &lt;/script&gt;
  </code></pre>