title: Reading code from GitHub as text (raw) in a web page
body: <p>I'm trying to read some source code (C language) from my GitHub repository to be shown as text in my webpage. I can access the code in raw mode through <a href="https://raw.github.com" rel="nofollow noreferrer">https://raw.github.com</a>.</p>
  
  <p>I'm using jQuery GET function to read the data but it doesn't work. Problem is related with XMLHttpRequest and Access-Control-Allow-Origin but, despite I found some related question on stackoverflow (<a href="https://stackoverflow.com/questions/3595515/xmlhttprequest-error-origin-null-is-not-allowed-by-access-control-allow-origin">XmlHttpRequest error: Origin null is not allowed by Access-Control-Allow-Origin</a>) it didn't work for me. I tried everything.</p>
  
  <p>My jQuery code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    $(document).ready(function() {
      var url = 'https://raw.github.com/raysan5/raylib/master/examples/ex01_basic_window.c';
  
      $.get(url, function(data) { 
          $('#code').text(data);
        }, 'text');
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>Please, could someone help me with this issue? Many thanks!</p>