title: Load json from github file
body: <p>I'm trying to access/retrieve some json data from a webpage hosted by github pages, so all of my files are within my repository. </p>
  
  <p>I'm trying to do</p>
  
  <pre><code>$.getJSON("https://raw.githubusercontent.com/mydata.json", function(data){
        console.log(data);
  }
  </code></pre>
  
  <p>from my html page on github-pages, since that's the only way I know how to access the json data right now. However, The json content is on the domain <code>https://raw.githubusercontent.com</code> while my page is from the domain <code>http://mygithub.github.io</code>, so I'm getting a <code>'Access-Control-Allow-Origin'</code> error, even though the data is all hosted on the same place at least?</p>
  
  <p>Any ideas on how to fix that, or get around that? I've been looking up some CORS stuff but don't completely understand it, nor how to change anything related to that on github.</p>
  
  <p>Thanks!</p>