Download readme from github?

I have the following code:

xmlhttp.open("GET", "https://raw.githubusercontent.com/Lemony-Andrew/SFML-Game-Engine/master/README",true);
xmlhttp.send();

It just retrieves the readme page from github, but it is denied access. How can I "merge" or download a basic readme (or description) from github? As in Careers 2.0, it shows the date the project was created and a fragment of the description.

Is it possible?

If you want to see it, the error is:

XMLHttpRequest cannot load https://raw.githubusercontent.com/Lemony-Andrew/SFML-Game-Engine/master/README . The heading 'Access-Control-Allow-Origin' has the value ' https://render.githubusercontent.com ', which is not equal to the supplied source. Origin ' https://c9.io ' so access is not allowed.

+4
1

. CORS, - heroku GitHub... :

var xmlhttp;
xmlhttp=new XMLHttpRequest();
xmlhttp.open("GET", "http://github-raw-cors-proxy.herokuapp.com/Lemony-Andrew/SFML-Game-Engine/master/README",true);
xmlhttp.send();

- , GitHub. , .

CORS: http://caniuse.com/#search=cors

+5

All Articles