title: Accessing .json file to get bank holidays access denied
body: <p>I am very new to <code>jQuery</code> and <code>json</code>. I am trying to get UK Bank Holiday data from the following API/link so that I can create a function which determines if a selected date is a working day.</p>
  
  <p><a href="https://www.gov.uk/bank-holidays.json" rel="nofollow">https://www.gov.uk/bank-holidays.json</a></p>
  
  <p>I had an error for <code>No Transport</code> which I fixed by putting in:</p>
  
  <pre><code>jQuery.support.cors = true;
  </code></pre>
  
  <p>I am now getting <code>Access Denied</code>. I have no idea how to gain access to this because as I say, I am still learning all this.</p>
  
  <pre><code>function IsWorkingDay(date) {
    var day = new moment(value, "DD-MM-YYYY").day();
    jQuery.support.cors = true;
    var bankHolidays = $.getJSON("https://www.gov.uk/bank-holidays.json").done(function(data) {
                                                                                     alert(data);
                                                                                   })
                                                                             .fail(function(a, b, c) {
                                                                                     alert(b + ',' + c);
    return day != 0 &amp;&amp; day != 6;
  }
                                                                            });
  </code></pre>
  
  <p>My question is in two phases:</p>
  
  <ol>
  <li>How do I get access? (Main question)</li>
  <li>How do I move on to access the data? I have downloaded the <code>json</code> onto my computer to look at, just how I am going to go about translating this to <code>javascript</code> is what I am struggling on.</li>
  </ol>